Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932670AbcCBBWZ (ORCPT ); Tue, 1 Mar 2016 20:22:25 -0500 Received: from mail333.us4.mandrillapp.com ([205.201.137.77]:34623 "EHLO mail333.us4.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753798AbcCAXz0 (ORCPT ); Tue, 1 Mar 2016 18:55:26 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=linuxfoundation.org; b=c2e0pB/uOBBQA5FqQYR/XS73mq5iRCOspnDpddXFh9GJ4kNRO4HypjNQfFyCagN9S2ogI+PA5vlY lorXya1/yo7Xq7+hYpqsPV2grYNDxzvha4Fug8w3Dx0HvSfy8cR7P/f6xldz5FDjZhnpFAXoe07a hweO23gpHehh/lJRC2g=; From: Greg Kroah-Hartman Subject: [PATCH 4.4 054/342] ARM: 8457/1: psci-smp is built only for SMP X-Mailer: git-send-email 2.7.2 To: Cc: Greg Kroah-Hartman , , Arnd Bergmann , Russell King Message-Id: <20160301234529.752784401@linuxfoundation.org> In-Reply-To: <20160301234527.990448862@linuxfoundation.org> References: <20160301234527.990448862@linuxfoundation.org> X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30481620.8e21a9a74bda4278bf95a2b550ff377f X-Mandrill-User: md_30481620 Date: Tue, 01 Mar 2016 23:54:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 38 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit be95485a0b8288a93402705730d3ea32f9f812b9 upstream. The PSCI SMP implementation is built only when both CONFIG_SMP and CONFIG_ARM_PSCI are set, so a configuration that has the latter but not the former can get a link error when it tries to call psci_smp_available(). arch/arm/mach-tegra/built-in.o: In function `tegra114_cpuidle_init': cpuidle-tegra114.c:(.init.text+0x52a): undefined reference to `psci_smp_available' This corrects the #ifdef in the psci.h header file to match the Makefile conditional we have for building that function. Signed-off-by: Arnd Bergmann Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/include/asm/psci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/include/asm/psci.h +++ b/arch/arm/include/asm/psci.h @@ -16,7 +16,7 @@ extern struct smp_operations psci_smp_ops; -#ifdef CONFIG_ARM_PSCI +#if defined(CONFIG_SMP) && defined(CONFIG_ARM_PSCI) bool psci_smp_available(void); #else static inline bool psci_smp_available(void) { return false; }