[PATCH][2.5.74] fix x86_64 breakage on UP with modules

Mikael Pettersson (mikpe@csd.uu.se)
Thu, 3 Jul 2003 18:11:44 +0200 (MEST)


Andi,

2.5.74 added EXPORT_SYMBOL for two TLB flushing procedures.
These aren't real procedures on UP, so the EXPORT_SYMBOLs must
be under #ifdef CONFIG_SMP, just like they are on i386. The
patch below fixes this. Please apply.

Without this patch you get a compile error on x86_64 if you've
configured for UP with modules.

/Mikael

--- linux-2.5.74/arch/x86_64/kernel/x8664_ksyms.c.~1~ 2003-07-03 12:32:44.000000000 +0200
+++ linux-2.5.74/arch/x86_64/kernel/x8664_ksyms.c 2003-07-03 17:24:00.422977104 +0200
@@ -121,6 +121,9 @@

EXPORT_SYMBOL(synchronize_irq);
EXPORT_SYMBOL(smp_call_function);
+
+EXPORT_SYMBOL(flush_tlb_page);
+EXPORT_SYMBOL_GPL(flush_tlb_all);
#endif

#ifdef CONFIG_VT
@@ -213,6 +216,3 @@
#endif

EXPORT_SYMBOL(clear_page);
-
-EXPORT_SYMBOL(flush_tlb_page);
-EXPORT_SYMBOL_GPL(flush_tlb_all);
-
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/