Minor compile fix for some modules.
PATCH 1/1 Minor compile fix for some modules.
Linus, please apply trivial patch.
Expose declaration of __this_module outside #ifdef KBUILD_MODNAME (which is not defined for objects included in two modules).
include/linux/module.h +5 -2
@@ -285,7 +285,9 @@ static inline const char *module_address }#endif /* CONFIG_MODULES */ -#if defined(MODULE ) && defined(KBUILD_MODNAME ) +#ifdef MODULE +extern struct module __this_module; +#ifdef KBUILD_MODNAME /* We make the linker do some of the work. */ struct module __this_module __attribute__((section(".gnu.linkonce.this_module"))) = {
@@ -296,7 +298,8 @@ __attribute__((section(".gnu.linkonce.th .exit = cleanup_module, #endif }; -#endif /* MODULE && KBUILD_MODNAME */ +#endif /* KBUILD_MODNAME */ +#endif /* MODULE */ /* For archs to search exception tables */ extern struct list_head extables;
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.