Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Kernel v2.6.26-rc1 /kernel/configs.c

Filename:/kernel/configs.c
Lines Added:3
Lines Deleted:4
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  kernel
     o  configs.c

Patch

diff --git a/kernel/configs.c b/kernel/configs.c
index e84d3f9..4c34521 100644
--- a/kernel/configs.c
+++ b/kernel/configs.c
@@ -79,12 +79,11 @@ static int __init ikconfig_init(void)
    struct proc_dir_entry *entry;
 
    /* create the current config file */
-   entry = create_proc_entry("config.gz", S_IFREG | S_IRUGO,
-              &proc_root);
+   entry = proc_create("config.gz", S_IFREG | S_IRUGO, NULL,
+             &ikconfig_file_ops);
    if (!entry)
       return -ENOMEM;
 
-   entry->proc_fops = &ikconfig_file_ops;
    entry->size = kernel_config_data_size;
 
    return 0;
@@ -95,7 +94,7 @@ static int __init ikconfig_init(void)
 
 static void __exit ikconfig_cleanup(void)
 {
-   remove_proc_entry("config.gz", &proc_root);
+   remove_proc_entry("config.gz", NULL);
 }
 
 module_init(ikconfig_init);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.