Message ID | 20180315151345.3089601-2-arnd@arndb.de |
---|---|
State | Accepted |
Commit | da395584b8614010f5dc386afc42cbcd368eed6c |
Headers | show |
Series | [1/2] ARM: imx: fix imx6sll-only build | expand |
On Thu, Mar 15, 2018 at 04:13:19PM +0100, Arnd Bergmann wrote: > The cpuidle support calls cpu_suspend(), which is compiled conditionally, > and fails to link unless something selects CONFIG_ARM_CPU_SUSPEND. > > arch/arm/mach-imx/cpuidle-imx6sx.o: In function `imx6sx_enter_wait': > cpuidle-imx6sx.c:(.text+0x6c): undefined reference to `cpu_suspend' > > This adds an explicit select statement here. > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Shawn Guo <shawnguo@kernel.org>
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index f53ec31c9f5a..e47fa13f4b0c 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -469,7 +469,7 @@ config SOC_IMX53 config SOC_IMX6 bool - select ARM_CPU_SUSPEND if PM + select ARM_CPU_SUSPEND if (PM || CPU_IDLE) select ARM_ERRATA_754322 select ARM_ERRATA_775420 select ARM_GIC
The cpuidle support calls cpu_suspend(), which is compiled conditionally, and fails to link unless something selects CONFIG_ARM_CPU_SUSPEND. arch/arm/mach-imx/cpuidle-imx6sx.o: In function `imx6sx_enter_wait': cpuidle-imx6sx.c:(.text+0x6c): undefined reference to `cpu_suspend' This adds an explicit select statement here. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0