patch-2.1.18 linux/arch/m68k/kernel/ksyms.c

Next file: linux/arch/m68k/mm/extable.c
Previous file: linux/arch/m68k/atari/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.17/linux/arch/m68k/kernel/ksyms.c linux/arch/m68k/kernel/ksyms.c
@@ -18,47 +18,34 @@
 extern void dump_thread(struct pt_regs *, struct user *);
 extern int dump_fpu(elf_fpregset_t *);
 
-static struct symbol_table arch_symbol_table = {
-#include <linux/symtab_begin.h>
-	/* platform dependent support */
+/* platform dependent support */
 
-	X(memcmp),
-	X(m68k_machtype),
-	X(m68k_cputype),
-	X(m68k_is040or060),
-	X(cache_push),
-	X(cache_push_v),
-	X(cache_clear),
-	X(mm_vtop),
-	X(mm_ptov),
-	X(mm_end_of_chunk),
-	X(m68k_debug_device),
-	X(request_irq),
-	X(free_irq),
-	X(dump_fpu),
-	X(dump_thread),
-	X(strnlen),
-	X(strrchr),
-	X(strstr),
+EXPORT_SYMBOLS(memcmp);
+EXPORT_SYMBOLS(m68k_machtype);
+EXPORT_SYMBOLS(m68k_cputype);
+EXPORT_SYMBOLS(m68k_is040or060);
+EXPORT_SYMBOLS(cache_push);
+EXPORT_SYMBOLS(cache_push_v);
+EXPORT_SYMBOLS(cache_clear);
+EXPORT_SYMBOLS(mm_vtop);
+EXPORT_SYMBOLS(mm_ptov);
+EXPORT_SYMBOLS(mm_end_of_chunk);
+EXPORT_SYMBOLS(m68k_debug_device);
+EXPORT_SYMBOLS(request_irq);
+EXPORT_SYMBOLS(free_irq);
+EXPORT_SYMBOLS(dump_fpu);
+EXPORT_SYMBOLS(dump_thread);
+EXPORT_SYMBOLS(strnlen);
+EXPORT_SYMBOLS(strrchr);
+EXPORT_SYMBOLS(strstr);
+
+/* The following are special because they're not called
+   explicitly (the C compiler generates them).  Fortunately,
+   their interface isn't gonna change any time soon now, so
+   it's OK to leave it out of version control.  */
+EXPORT_SYMBOLS_NOVERS(__ashrdi3);
+EXPORT_SYMBOLS_NOVERS(memcpy);
+EXPORT_SYMBOLS_NOVERS(memset);
 
-	/* The following are special because they're not called
-	   explicitly (the C compiler generates them).  Fortunately,
-	   their interface isn't gonna change any time soon now, so
-	   it's OK to leave it out of version control.  */
-	XNOVERS(__ashrdi3),
-	XNOVERS(memcpy),
-	XNOVERS(memset),
-
-	XNOVERS(__down_failed),
-	XNOVERS(__up_wakeup),
-
-#include <linux/symtab_end.h>
-};
-
-void arch_syms_export(void)
-{
-	register_symtab(&arch_symbol_table);
-
-	if (mach_syms_export)
-	    mach_syms_export();
-}
+EXPORT_SYMBOLS_NOVERS(__down_failed);
+EXPORT_SYMBOLS_NOVERS(__up_wakeup);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov