From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E65FDC43381 for ; Mon, 1 Apr 2019 17:40:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B002720830 for ; Mon, 1 Apr 2019 17:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554140423; bh=z+6z17SYTm1dRqLg9n06i8TPvbYwlWKeYLhTQkowt8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EchadL+wf0IV+iyxocacoxv5z0CHCPaUI5SQeVfsoDaZF4CjYluEdAq/pyqKmmrC3 4pkPCIbWgPKdC7G2fcGgIE5VJnsdFfo6rik6v3A5iY68FLoBcPQLBrfX3B3224rJJN c4LUUA4fmRloEdLB96n6JYTLBLG0wY3ybC2755vQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388073AbfDARjU (ORCPT ); Mon, 1 Apr 2019 13:39:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:52974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388416AbfDARjQ (ORCPT ); Mon, 1 Apr 2019 13:39:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1B72E20830; Mon, 1 Apr 2019 17:39:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554140355; bh=z+6z17SYTm1dRqLg9n06i8TPvbYwlWKeYLhTQkowt8k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DANpM8ERGpIx/7OHTQapmj3VJcXhG5I6p16qthxvfSXLqGv8105CelelE3RtE24N4 SRnyu9IDkeWPiUi3fRVPRupfglAbgasxmY0DPmwICg4jvvL8ghX/MVbG+QvLfHTCJi A4vI2hZ/CNaPV0nh19ch6rtm31oIGJRdHo7pB1wo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Nicolas Pitre , Russell King , Sasha Levin Subject: [PATCH 3.18 12/50] ARM: 8458/1: bL_switcher: add GIC dependency Date: Mon, 1 Apr 2019 19:02:55 +0200 Message-Id: <20190401170042.398401589@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170041.257273804@linuxfoundation.org> References: <20190401170041.257273804@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 6c044fecdf78be3fda159a5036bb33700cdd5e59 ] It is not possible to build the bL_switcher code if the GIC driver is disabled, because it relies on calling into some gic specific interfaces, and that would result in this build error: arch/arm/common/built-in.o: In function `bL_switch_to': :(.text+0x1230): undefined reference to `gic_get_sgir_physaddr' :(.text+0x1244): undefined reference to `gic_send_sgi' :(.text+0x1268): undefined reference to `gic_migrate_target' arch/arm/common/built-in.o: In function `bL_switcher_enable.part.4': :(.text.unlikely+0x2f8): undefined reference to `gic_get_cpu_id' This adds a Kconfig dependency to ensure we only build the big-little switcher if the GIC driver is present as well. Almost all ARMv7 platforms come with a GIC anyway, but it is possible to build a kernel that disables all platforms. Signed-off-by: Arnd Bergmann Acked-by: Nicolas Pitre Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 89c4b5ccc68d..bd3a806df001 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1432,7 +1432,7 @@ config BIG_LITTLE config BL_SWITCHER bool "big.LITTLE switcher support" - depends on BIG_LITTLE && MCPM && HOTPLUG_CPU + depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC select ARM_CPU_SUSPEND select CPU_PM help -- 2.19.1