lkml.org 
[lkml]   [2003]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.5.64-mm8: link error with CONFIG_NUMA and !CONFIG_SMP
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.082 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site