projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
300b994
)
proc: proc_sys_root tweak
author
Alexey Dobriyan
<adobriyan@gmail.com>
Thu, 2 Oct 2008 20:23:32 +0000
(
00:23
+0400)
committer
Alexey Dobriyan
<adobriyan@gmail.com>
Fri, 10 Oct 2008 00:18:55 +0000
(
04:18
+0400)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
fs/proc/proc_sysctl.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/proc_sysctl.c
b/fs/proc/proc_sysctl.c
index f9a8b892718fc2f1a04ce1d169ba1667378832b5..daa5f51e534faeb693a8b2af0afae4dcb6d09cc6 100644
(file)
--- 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;