2.5.64-mm8: link error with CONFIG_NUMA and !CONFIG_SMP

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sun Mar 16 2003 - 14:10:13 EST


I get many errors at the final linking when compiling a kernel with
CONFIG_NUMA enabled but CONFIG_SMP disabled:

<-- snip -->

...
/home/bunk/linux/kernel-2.5/linux-2.5.64-mm8/include/asm/topology.h:41:
undefined reference to `cpu_2_node'
...

<-- snip -->

the problem is that include/asm-i386/topology.h says:

<-- snip -->

...
#ifdef CONFIG_NUMA
...
extern volatile int cpu_2_node[];
...

<-- snip -->

but cpu_2_node is in arch/i386/kernel/smpboot.c that only gets included
with CONFIG_SMP.

cu
Adrian

-- 

"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:18 EST