[2.5.74] fix x86_64 breakage on UP with modules

[2.5.74] fix x86_64 breakage on UP with modules

Post by Mikael Pettersso » Fri, 04 Jul 2003 18:20:12



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

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


 #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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/