]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
[PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
authorJason Wessel <jason.wessel@windriver.com>
Tue, 20 Dec 2005 22:41:02 +0000 (23:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Dec 2005 00:08:58 +0000 (16:08 -0800)
All the work was done to setup the file and maintain the file handles but
the access functions were zeroed out due to the #ifdef.  Removing the
#ifdef allows full access to all the parameters when CONFIG_MODULES=n.

akpm: put it back again, but use CONFIG_SYSFS instead.

This patch has already been included in Linus' tree.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/params.c

index 1a8614bac5d5c819110ae67bd21efca75845b600..fe8f1e9880f828e61e66e1707f276ee6320f05aa 100644 (file)
@@ -618,7 +618,7 @@ static void __init param_sysfs_builtin(void)
 
 
 /* module-related sysfs stuff */
-#ifdef CONFIG_MODULES
+#ifdef CONFIG_SYSFS
 
 #define to_module_attr(n) container_of(n, struct module_attribute, attr);
 #define to_module_kobject(n) container_of(n, struct module_kobject, kobj);