--- linux-2.6.12-rc6-mm1/kernel/module.c 2005-06-08 15:22:43.995409432 -0700 +++ linux-2.6.12-rc6-mm1/kernel/module.c.fixed 2005-06-08 15:21:55.286814264 -0700 @@ -370,6 +370,7 @@ static inline void percpu_modcopy(void * } #endif /* CONFIG_SMP */ +#ifdef CONFIG_MODULE_UNLOAD #define MODINFO_ATTR(field) \ static void setup_modinfo_##field(struct module *mod, const char *s) \ { \ @@ -407,7 +408,6 @@ static struct module_attribute *modinfo_ NULL, }; -#ifdef CONFIG_MODULE_UNLOAD /* Init the unload section of the module. */ static void module_unload_init(struct module *mod) {