Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1699889
| From | Kevin Brodsky <kevin.brodsky@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] psci: add CPU_IDLE dependency |
| Date | 2017-07-31 12:20 +0200 |
| Message-ID | <u9fXQ-513-7@gated-at.bofh.it> (permalink) |
| References | <u9eIq-44A-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Apologies for the resending, damn Thunderbird sending HTML...]
On 31/07/17 09:55, Arnd Bergmann wrote:
> 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.
Good catch! For some reason I missed this config option when figuring out the
dependencies... I wonder though, shouldn't cpuidle.h declare cpuidle_devices
conditionally on CONFIG_CPU_IDLE?
> Fixes: ea8b1c4a6019 ("drivers: psci: PSCI checker module")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Kevin Brodsky <kevin.brodsky@arm.com>
Cheers,
Kevin
> ---
> drivers/firmware/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
> index 6e4ed5a9c6fd..1983e6e0106f 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.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] psci: add CPU_IDLE dependency Arnd Bergmann <arnd@arndb.de> - 2017-07-31 11:00 +0200
Re: [PATCH] psci: add CPU_IDLE dependency Kevin Brodsky <kevin.brodsky@arm.com> - 2017-07-31 12:20 +0200
Re: [PATCH] psci: add CPU_IDLE dependency Jean Delvare <jdelvare@suse.de> - 2017-07-31 16:20 +0200
Re: [PATCH] psci: add CPU_IDLE dependency Kevin Brodsky <kevin.brodsky@arm.com> - 2017-07-31 18:30 +0200
Re: [PATCH] psci: add CPU_IDLE dependency Nishanth Menon <nm@ti.com> - 2017-07-31 14:40 +0200
csiph-web