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

Next file: linux/include/linux/msdos_fs.h
Previous file: linux/include/linux/fd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.39/linux/include/linux/module.h linux/include/linux/module.h
@@ -9,21 +9,16 @@
 
 #ifdef __GENKSYMS__
 #  define _set_ver(sym,vers) sym
+#  undef  MODVERSIONS
 #  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 */
+#  ifndef MODULE
 #   ifdef EXPORT_SYMTAB
 #    define _set_ver(sym,vers) sym
 #    include <linux/modversions.h>
 #   endif /* EXPORT_SYMTAB */
 #  endif /* MODULE */
-#  undef CONFIG_MODVERSIONS /* the *.ver files needed this... */
 # endif /* MODVERSIONS */
 #endif /* __GENKSYMS__ */
 

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