patch-1.3.39 linux/include/linux/module.h

Next file: linux/include/linux/random.h
Previous file: linux/include/linux/mm.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.38/linux/include/linux/module.h linux/include/linux/module.h
@@ -7,21 +7,25 @@
 #ifndef _LINUX_MODULE_H
 #define _LINUX_MODULE_H
 
-#ifdef MODVERSIONS
-# ifndef __GENKSYMS__
+#ifdef __GENKSYMS__
+#  define _set_ver(sym,vers) sym
+#  define MODVERSIONS
+#else /* ! __GENKSYMS__ */
+# ifdef MODVERSIONS
+#  undef CONFIG_MODVERSIONS /* the *.ver files need this... */
+#  define CONFIG_MODVERSIONS /* the *.ver files need this... */
 #  ifdef MODULE
 #   define _set_ver(sym,vers) sym ## _R ## vers
 #   include <linux/modversions.h>
-#  else /* MODULE */
+#  else /* !MODULE */
 #   ifdef EXPORT_SYMTAB
 #    define _set_ver(sym,vers) sym
 #    include <linux/modversions.h>
 #   endif /* EXPORT_SYMTAB */
 #  endif /* MODULE */
-# else /* __GENKSYMS__ */
-#  define _set_ver(sym,vers) sym
-# endif /* __GENKSYMS__ */
-#endif /* MODVERSIONS */
+#  undef CONFIG_MODVERSIONS /* the *.ver files needed this... */
+# endif /* MODVERSIONS */
+#endif /* __GENKSYMS__ */
 
 /* values of module.state */
 #define MOD_UNINITIALIZED 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