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

Next file: linux/include/linux/sys.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.4/linux/include/linux/symtab_begin.h linux/include/linux/symtab_begin.h
@@ -1,16 +1,19 @@
+#include <linux/linkage.h>
 #ifdef CONFIG_MODVERSIONS /* CONFIG_MODVERSIONS */
 #undef _set_ver
 #undef X
 #ifndef __GENKSYMS__
 #ifdef MODULE
-#define _set_ver(sym,ver) { (void *) & sym ## _R ## ver, "_" #sym "_R" #ver }
+#define _set_ver(sym,ver) \
+	{ (void *) & sym ## _R ## ver, SYMBOL_NAME_STR(sym) "_R" #ver }
 #else /* MODULE */
-#define _set_ver(sym,ver) { (void *) & sym, "_" #sym "_R" #ver }
+#define _set_ver(sym,ver) \
+	{ (void *) & sym, SYMBOL_NAME_STR(sym) "_R" #ver }
 #endif /* MODULE */
 #define X(a) a
 #endif /* __GENKSYMS__ */
 #else /* CONFIG_MODVERSIONS */
-#define X(sym) { (void *) & sym, "_" #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