From: Arnd Bergmann Date: Mon, 31 Jul 2017 08:55:00 +0000 (+0200) Subject: psci: add CPU_IDLE dependency X-Git-Tag: v4.16-rc1~98^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=95140ed16db560ef86ab4ebe1a4e9b748d098669;p=users%2Fjedix%2Flinux-maple.git psci: add CPU_IDLE dependency I ran into a build error for the psci_checker: drivers/firmware/psci_checker.o: In function `psci_checker': psci_checker.c:(.init.text+0x528): undefined reference to `cpuidle_devices' As far as I can tell, this is simply a very rare combination of options, but the problem has existed since the code was initially added. Adding a Kconfig dependency makes it build properly. Fixes: ea8b1c4a6019 ("drivers: psci: PSCI checker module") Acked-by: Kevin Brodsky Reviewed-by: Nishanth Menon Reviewed-by: Jean Delvare Signed-off-by: Arnd Bergmann --- diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index fa87a055905ea..7db73c833d28d 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -10,7 +10,7 @@ config ARM_PSCI_FW config ARM_PSCI_CHECKER bool "ARM PSCI checker" - depends on ARM_PSCI_FW && HOTPLUG_CPU && !TORTURE_TEST + depends on ARM_PSCI_FW && HOTPLUG_CPU && CPU_IDLE && !TORTURE_TEST help Run the PSCI checker during startup. This checks that hotplug and suspend operations work correctly when using PSCI.