Skip to content

Commit

Permalink
[PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
Browse files Browse the repository at this point in the history
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.

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: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jason Wessel authored and Linus Torvalds committed Dec 20, 2005
1 parent 7e87023 commit 9e28393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,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);
Expand Down

0 comments on commit 9e28393

Please sign in to comment.