mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] missing export of cpu_2_node
@ 2004-01-30 20:20 Patrick Mansfield
  2004-01-30 20:37 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Mansfield @ 2004-01-30 20:20 UTC (permalink / raw)
  To: Andrew Morton, Matthew Dobson, linux-kernel

Hi -

While compiling on a NUMAQ with st as a module, cpu_2_node comes up as
undefined:

WARNING: /lib/modules/2.6.2-rc2/kernel/drivers/scsi/st.ko needs unknown symbol cpu_2_node

This patch exports cpu_2_node.

===== arch/i386/kernel/smpboot.c 1.67 vs edited =====
--- 1.67/arch/i386/kernel/smpboot.c	Sun Oct  5 01:07:44 2003
+++ edited/arch/i386/kernel/smpboot.c	Fri Jan 30 10:16:05 2004
@@ -33,6 +33,7 @@
  *		Dave Jones	:	Report invalid combinations of Athlon CPUs.
 *		Rusty Russell	:	Hacked into shape for new "hotplug" boot process. */
 
+#include <linux/module.h>
 #include <linux/config.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -503,6 +504,7 @@
 				{ [0 ... MAX_NUMNODES-1] = CPU_MASK_NONE };
 /* which node each logical CPU is on */
 int cpu_2_node[NR_CPUS] = { [0 ... NR_CPUS-1] = 0 };
+EXPORT_SYMBOL(cpu_2_node);
 
 /* set up a mapping between cpu and node. */
 static inline void map_cpu_to_node(int cpu, int node)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-01-30 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-30 20:20 [PATCH] missing export of cpu_2_node Patrick Mansfield
2004-01-30 20:37 ` Andrew Morton
2004-01-30 21:04   ` Patrick Mansfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®