public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
@ 2005-12-13  1:50 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-12-13  1:50 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel, Greg KH

From: Jason Wessel <jason.wessel@windriver.com>

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>

--- 

This patch is 
fix-sysfs-access-to-module-parameters-with-config_modules\=n.patch
in -mm.

This patch is simple enough for getting it into 2.6.15 and I'm inclined 
to even submit it for -stable.

 kernel/params.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/params.c~fix-sysfs-access-to-module-parameters-with-config_modules=n kernel/params.c
--- devel/kernel/params.c~fix-sysfs-access-to-module-parameters-with-config_modules=n	2005-11-14 23:20:34.000000000 -0800
+++ devel-akpm/kernel/params.c	2005-11-14 23:20:51.000000000 -0800
@@ -619,7 +619,7 @@ static void __init param_sysfs_builtin(v
 
 
 /* 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);
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
@ 2005-12-20 14:21 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-12-20 14:21 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel, Greg KH

From: Jason Wessel <jason.wessel@windriver.com>

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>

--- 

This patch was already sent on:
- 13 Dec 2005

This patch is 
fix-sysfs-access-to-module-parameters-with-config_modules\=n.patch
in -mm.

This patch is simple enough for getting it into 2.6.15 and I'm inclined 
to even submit it for -stable.

 kernel/params.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/params.c~fix-sysfs-access-to-module-parameters-with-config_modules=n kernel/params.c
--- devel/kernel/params.c~fix-sysfs-access-to-module-parameters-with-config_modules=n	2005-11-14 23:20:34.000000000 -0800
+++ devel-akpm/kernel/params.c	2005-11-14 23:20:51.000000000 -0800
@@ -619,7 +619,7 @@ static void __init param_sysfs_builtin(v
 
 
 /* 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);
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-20 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 14:21 [2.6 patch] kernel/params.c: fix sysfs access with CONFIG_MODULES=n Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-12-13  1:50 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox