diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-02 22:23:32 +0200 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-10 02:18:55 +0200 |
commit | e1675231ceedf83f20943a26e5e346a52163dec8 (patch) | |
tree | c9b7bdd35078676efcce704eb9ee4ed9303dcbee /fs/proc/proc_sysctl.c | |
parent | proc: fix return value of proc_reg_open() in "too late" case (diff) | |
download | linux-e1675231ceedf83f20943a26e5e346a52163dec8.tar.xz linux-e1675231ceedf83f20943a26e5e346a52163dec8.zip |
proc: proc_sys_root tweak
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | fs/proc/proc_sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index f9a8b892718f..daa5f51e534f 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c @@ -395,10 +395,10 @@ static struct dentry_operations proc_sys_dentry_operations = { .d_compare = proc_sys_compare, }; -static struct proc_dir_entry *proc_sys_root; - int proc_sys_init(void) { + struct proc_dir_entry *proc_sys_root; + proc_sys_root = proc_mkdir("sys", NULL); proc_sys_root->proc_iops = &proc_sys_dir_operations; proc_sys_root->proc_fops = &proc_sys_dir_file_operations; |