* 2.6.0-test3-bk1 -- include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function)
@ 2003-08-10 18:42 Miles Lane
2003-08-10 19:09 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Miles Lane @ 2003-08-10 18:42 UTC (permalink / raw)
To: linuxppc-dev
CC kernel/timer.o
In file included from include/linux/smp.h:17,
from include/linux/kernel_stat.h:6,
from kernel/timer.c:22:
include/asm/smp.h: In function `any_online_cpu':
include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function)
include/asm/smp.h:61: error: (Each undeclared identifier is reported only once
include/asm/smp.h:61: error: for each function it appears in.)
make[1]: *** [kernel/timer.o] Error 1
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_6xx=y
CONFIG_PM=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_PPC_STD_MMU=y
CONFIG_PPC_MULTIPLATFORM=y
CONFIG_PPC_CHRP=y
CONFIG_PPC_PMAC=y
CONFIG_PPC_PREP=y
CONFIG_PPC_OF=y
CONFIG_SMP=y
CONFIG_NR_CPUS=2
CONFIG_ALTIVEC=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_PROC_INTF=y
CONFIG_CPU_FREQ_24_API=y
CONFIG_CPU_FREQ_PMAC=y
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: 2.6.0-test3-bk1 -- include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function) 2003-08-10 18:42 2.6.0-test3-bk1 -- include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function) Miles Lane @ 2003-08-10 19:09 ` Christoph Hellwig 2003-08-10 19:34 ` PATCH -- " Miles Lane 0 siblings, 1 reply; 3+ messages in thread From: Christoph Hellwig @ 2003-08-10 19:09 UTC (permalink / raw) To: Miles Lane; +Cc: linuxppc-dev On Sun, Aug 10, 2003 at 11:42:16AM -0700, Miles Lane wrote: > > CC kernel/timer.o > In file included from include/linux/smp.h:17, > from include/linux/kernel_stat.h:6, > from kernel/timer.c:22: > include/asm/smp.h: In function `any_online_cpu': > include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function) > include/asm/smp.h:61: error: (Each undeclared identifier is reported only once > include/asm/smp.h:61: error: for each function it appears in.) > make[1]: *** [kernel/timer.o] Error 1 I had that for a while now. Including <linux/threads.h> in <asm/smp.h> fixes it. ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH -- Re: 2.6.0-test3-bk1 -- include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function) 2003-08-10 19:09 ` Christoph Hellwig @ 2003-08-10 19:34 ` Miles Lane 0 siblings, 0 replies; 3+ messages in thread From: Miles Lane @ 2003-08-10 19:34 UTC (permalink / raw) To: paulus; +Cc: linuxppc-dev For Linus: --- include/asm-ppc/smp.h~ 2003-07-27 09:57:50.000000000 -0700 +++ include/asm-ppc/smp.h 2003-08-10 12:30:14.000000000 -0700 @@ -14,6 +14,7 @@ #include <linux/kernel.h> #include <linux/bitops.h> #include <linux/errno.h> +#include <linux/threads.h> #ifdef CONFIG_SMP ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-10 19:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-08-10 18:42 2.6.0-test3-bk1 -- include/asm/smp.h:61: error: `NR_CPUS' undeclared (first use in this function) Miles Lane 2003-08-10 19:09 ` Christoph Hellwig 2003-08-10 19:34 ` PATCH -- " Miles Lane
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).