patch to export __cpu_logical_map, smp_num_cpus with SMP

Henner Eisen (eis@baty.hanse.de)
Sun, 1 Feb 1998 23:37:03 +0100


Hi,

the new inline function kstat_irqs() refers two symbols which are
not exported when compiled with SMP enabled. Thus, insmod fails for
modules (like HiSax) which call that function when SMP was enabled.

The following patch (tested with 2.1.82, but 2.1.84 still seems to
need this) is a (hopefully not too dirty -:) fix.

Henner

--- 2.1.82/arch/i386/kernel/i386_ksyms.c Wed Jan 28 18:54:03 1998
+++ 2.1.82-ix25/arch/i386/kernel/i386_ksyms.c Thu Jan 29 00:02:50 1998
@@ -64,6 +64,7 @@

#ifdef __SMP__
EXPORT_SYMBOL(apic_reg); /* Needed internally for the I386 inlines */
+EXPORT_SYMBOL(__cpu_logical_map);
EXPORT_SYMBOL(cpu_data);
EXPORT_SYMBOL_NOVERS(kernel_flag);
EXPORT_SYMBOL_NOVERS(active_kernel_processor);
--- 2.1.82/kernel/ksyms.c Wed Jan 28 18:54:14 1998
+++ 2.1.82-ix25/kernel/ksyms.c Thu Jan 29 08:18:08 1998
@@ -299,6 +299,7 @@
EXPORT_SYMBOL(timer_table);

#ifdef __SMP__
+EXPORT_SYMBOL(smp_num_cpus);
/* Various random spinlocks we want to export */
EXPORT_SYMBOL(tqueue_lock);
EXPORT_SYMBOL(waitqueue_lock);