Re: 2.6.21-rc2-mm1 - build error with HOTPLUG_CPU=N, CPU_IDLE=Y

From: Valdis . Kletnieks
Date: Fri Mar 02 2007 - 10:43:24 EST


On Fri, 02 Mar 2007 03:00:26 PST, Andrew Morton said:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc2/2.6.21-rc2-mm1/

> git-acpi.patch

Build dies if your config has CONFIG_HOTPLUG_CPU=N but CPU_IDLE=Y

CC drivers/cpuidle/cpuidle.o
drivers/cpuidle/cpuidle.c: In function â??cpuidle_initâ??:
drivers/cpuidle/cpuidle.c:272: error: â??cpuidle_cpu_notifierâ?? undeclared (first use in this function)
drivers/cpuidle/cpuidle.c:272: error: (Each undeclared identifier is reported only once
drivers/cpuidle/cpuidle.c:272: error: for each function it appears in.)
make[2]: *** [drivers/cpuidle/cpuidle.o] Error 1

Not sure if we're missing some Kconfig 'depends on' magic, or a missing
pair of #ifdef/#endif, or what...

Attachment: pgp00000.pgp
Description: PGP signature