patch-2.1.18 linux/drivers/net/slhc.c

Next file: linux/drivers/net/sunlance.c
Previous file: linux/drivers/net/pt.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.17/linux/drivers/net/slhc.c linux/drivers/net/slhc.c
@@ -87,7 +87,6 @@
 static long decode(unsigned char **cpp);
 static unsigned char * put16(unsigned char *cp, unsigned short x);
 static unsigned short pull16(unsigned char **cpp);
-static void export_slhc_syms(void);
 
 /* Initialize compression data structure
  *	slots must be in range 0 to 255 (zero meaning no compression)
@@ -720,30 +719,20 @@
 	}
 }
 
-static struct symbol_table slhc_syms = {
 /* Should this be surrounded with "#ifdef CONFIG_MODULES" ? */
-#include <linux/symtab_begin.h>
-        /* VJ header compression */
-        X(slhc_init),
-        X(slhc_free),
-        X(slhc_remember),
-        X(slhc_compress),
-        X(slhc_uncompress),
-        X(slhc_toss),
-#include <linux/symtab_end.h>
-};
-
-static void export_slhc_syms(void)
-{
-	register_symtab(&slhc_syms);
-}
+/* VJ header compression */
+EXPORT_SYMBOL(slhc_init);
+EXPORT_SYMBOL(slhc_free);
+EXPORT_SYMBOL(slhc_remember);
+EXPORT_SYMBOL(slhc_compress);
+EXPORT_SYMBOL(slhc_uncompress);
+EXPORT_SYMBOL(slhc_toss);
 
 #ifdef MODULE
 
 int init_module(void)
 {
 	printk(KERN_INFO "CSLIP: code copyright 1989 Regents of the University of California\n");
-	export_slhc_syms();
 	return 0;
 }
 
@@ -751,11 +740,12 @@
 {
 	return;
 }
+
 #else /* MODULE */
 
 void slhc_install(void)
 {
-	export_slhc_syms();
 }
-#endif
+
+#endif /* MODULE */
 #endif /* CONFIG_INET */

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