/[linux-patches]/genpatches-2.6/trunk/2.6.14/1172_5_params-sysfs-access.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1172_5_params-sysfs-access.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 292 - (show annotations) (download) (as text)
Tue Jan 31 21:50:53 2006 UTC (14 years, 10 months ago) by johnm
File MIME type: text/x-diff
File size: 1236 byte(s)
Large update - thanks goes to Kerin Millar for the legwork.
1 From: Jason Wessel <jason.wessel@windriver.com>
2 Date: Tue, 20 Dec 2005 22:41:02 +0000 (+0100)
3 Subject: [PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
4 X-Git-Url: http://kernel.org/git/?p=linux/kernel/git/gregkh/linux-2.6.14.y.git;a=commitdiff;h=eec59235580a82f31ec66e066666332b804b0714
5
6 [PATCH] kernel/params.c: fix sysfs access with CONFIG_MODULES=n
7
8 All the work was done to setup the file and maintain the file handles but
9 the access functions were zeroed out due to the #ifdef. Removing the
10 #ifdef allows full access to all the parameters when CONFIG_MODULES=n.
11
12 akpm: put it back again, but use CONFIG_SYSFS instead.
13
14 This patch has already been included in Linus' tree.
15
16 Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
17 Signed-off-by: Andrew Morton <akpm@osdl.org>
18 Signed-off-by: Adrian Bunk <bunk@stusta.de>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20 ---
21
22 --- a/kernel/params.c
23 +++ b/kernel/params.c
24 @@ -618,7 +618,7 @@ static void __init param_sysfs_builtin(v
25
26
27 /* module-related sysfs stuff */
28 -#ifdef CONFIG_MODULES
29 +#ifdef CONFIG_SYSFS
30
31 #define to_module_attr(n) container_of(n, struct module_attribute, attr);
32 #define to_module_kobject(n) container_of(n, struct module_kobject, kobj);

  ViewVC Help
Powered by ViewVC 1.1.20