]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] ia64: fix missing symbol exports
authorXavier Bru <xavier.bru@bull.net>
Thu, 3 Apr 2003 04:19:17 +0000 (20:19 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Thu, 3 Apr 2003 04:19:17 +0000 (20:19 -0800)
3) with CONFIG_NUMA set, there are undefined symbols building modules:

scripts/modpost vmlinux drivers/md/dm-mod.o drivers/net/e1000/e1000.o drivers/net/eepro100.o drivers/md/md.o drivers/net/mii.o fs/xfs/xfs.o
*** Warning: cpu_info__per_cpu [fs/xfs/xfs.ko] undefined!
*** Warning: cpu_info__per_cpu [drivers/md/md.ko] undefined!
*** Warning: cpu_to_node_map [drivers/md/md.ko] undefined!

exporting them in ia64_ksyms.c fixes the problem.

arch/ia64/kernel/ia64_ksyms.c

index 7cf693f4612f2a5f86ca4f278d355cd82b6c28c1..0a060656f323afc2d673247fb75dcbd622603b0e 100644 (file)
@@ -57,9 +57,7 @@ EXPORT_SYMBOL_NOVERS(__up);
 EXPORT_SYMBOL(clear_page);
 
 #include <asm/processor.h>
-# ifndef CONFIG_NUMA
 EXPORT_SYMBOL(cpu_info__per_cpu);
-# endif
 EXPORT_SYMBOL(kernel_thread);
 
 #include <asm/system.h>
@@ -148,6 +146,11 @@ EXPORT_SYMBOL(pfm_install_alternate_syswide_subsystem);
 EXPORT_SYMBOL(pfm_remove_alternate_syswide_subsystem);
 #endif
 
+#ifdef CONFIG_NUMA
+#include <asm/numa.h>
+EXPORT_SYMBOL(cpu_to_node_map);
+#endif
+
 #include <asm/unwind.h>
 EXPORT_SYMBOL(unw_init_from_blocked_task);
 EXPORT_SYMBOL(unw_init_running);