Skip to contentSkip to conversation

zftape: Cleanup zftape_syms.c

PATCH New Sam Ravnborg 1 participant 1 message Sep 11, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zftape: Cleanup zftape_syms.c

Removed compatibility cruft from zftape_syms.c.
There is no need to be compatible with kernel 2.1.18 and older. Replaced FT_KSYM with direct call to EXPORT_SYMBOL.

Compiled - not tested.

Sam

===== drivers/char/ftape/zftape/zftape_syms.c 1.1 vs edited =====

drivers/char/ftape/zftape/zftape_syms.c +6 -20
@@ -34,26 +34,12 @@
 #include "../zftape/zftape-buffers.h"
 #include "../zftape/zftape-ctl.h"
 
-#if LINUX_VERSION_CODE >= KERNEL_VER(2,1,18)
-# define FT_KSYM(sym) EXPORT_SYMBOL(sym);
-#else
-# define FT_KSYM(sym) X(sym),
-#endif
-
-#if LINUX_VERSION_CODE < KERNEL_VER(2,1,18)
-struct symbol_table zft_symbol_table = {
-#include <linux/symtab_begin.h>
-#endif
 /* zftape-init.c */
-FT_KSYM(zft_cmpr_register)
-FT_KSYM(zft_cmpr_unregister)
+EXPORT_SYMBOL(zft_cmpr_register);
+EXPORT_SYMBOL(zft_cmpr_unregister);
 /* zftape-read.c */
-FT_KSYM(zft_fetch_segment_fraction)
+EXPORT_SYMBOL(zft_fetch_segment_fraction);
 /* zftape-buffers.c */
-FT_KSYM(zft_vmalloc_once)
-FT_KSYM(zft_vmalloc_always)
-FT_KSYM(zft_vfree)
-#if LINUX_VERSION_CODE < KERNEL_VER(2,1,18)
-#include <linux/symtab_end.h>
-};
-#endif
+EXPORT_SYMBOL(zft_vmalloc_once);
+EXPORT_SYMBOL(zft_vmalloc_always);
+EXPORT_SYMBOL(zft_vfree);