patch-1.3.10 linux/include/linux/symtab_begin.h

Next file: linux/include/net/eth.h
Previous file: linux/include/linux/skbuff.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.9/linux/include/linux/symtab_begin.h linux/include/linux/symtab_begin.h
@@ -1,19 +1,23 @@
+#include <linux/config.h>
 #include <linux/linkage.h>
-#ifdef CONFIG_MODVERSIONS /* CONFIG_MODVERSIONS */
-#undef _set_ver
-#undef X
-#ifndef __GENKSYMS__
-#ifdef MODULE
-#define _set_ver(sym,ver) \
+
+#ifdef CONFIG_MODVERSIONS
+# undef _set_ver
+# undef X
+
+# ifndef __GENKSYMS__
+#  ifdef MODULE
+#    define _set_ver(sym,ver) \
 	{ (void *) & sym ## _R ## ver, SYMBOL_NAME_STR(sym) "_R" #ver }
-#else /* MODULE */
-#define _set_ver(sym,ver) \
+#  else /* MODULE */
+#    define _set_ver(sym,ver) \
 	{ (void *) & sym, SYMBOL_NAME_STR(sym) "_R" #ver }
-#endif /* MODULE */
-#define X(a) a
-#endif /* __GENKSYMS__ */
+#  endif /* MODULE */
+#  define X(a) a
+# endif /* !__GENKSYMS__ */
 #else /* CONFIG_MODVERSIONS */
-#define X(sym) { (void *) & sym, SYMBOL_NAME_STR(sym)}
+# define X(sym) { (void *) & sym, SYMBOL_NAME_STR(sym)}
 #endif /* CONFIG_MODVERSIONS */
+
 #define EMPTY {0,0}
 	0, 0, 0, {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this