Commit 9e28393998d3d0733097306762f6d1c083fc92c6
Committed by
Linus Torvalds
1 parent
7e87023348
Exists in
master
and in
7 other branches
[PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
kernel/params.c
... | ... | @@ -619,7 +619,7 @@ |
619 | 619 | |
620 | 620 | |
621 | 621 | /* module-related sysfs stuff */ |
622 | -#ifdef CONFIG_MODULES | |
622 | +#ifdef CONFIG_SYSFS | |
623 | 623 | |
624 | 624 | #define to_module_attr(n) container_of(n, struct module_attribute, attr); |
625 | 625 | #define to_module_kobject(n) container_of(n, struct module_kobject, kobj); |