reiserfs: fix oops while creating privroot with selinux enabled
[safe/jmp/linux-2.6] / include / linux / module.h
index 7e74ae0..5e869ff 100644 (file)
@@ -175,6 +175,7 @@ struct notifier_block;
 
 #ifdef CONFIG_MODULES
 
+extern int modules_disabled; /* for sysctl */
 /* Get/put a kernel symbol (calls must be symmetric) */
 void *__symbol_get(const char *symbol);
 void *__symbol_get_gpl(const char *symbol);
@@ -365,7 +366,7 @@ struct module
 
        struct module_ref {
                int count;
-       } *refptr;
+       } __percpu *refptr;
 #endif
 
 #ifdef CONFIG_CONSTRUCTORS