Commit b54807fa52ae21bdf6bad72b0f00fd400af412eb

Authored by Eric W. Biederman
1 parent 040757f738

sysctl: Remove dead register_sysctl_root

The function no longer does anything.  The is only a single caller of
register_sysctl_root when semantically there should be two.  Remove
this function so that if someone decides this functionality is needed
again it will be obvious all of the callers of setup_sysctl_set need
to be audited and modified appropriately.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

Showing 3 changed files with 0 additions and 6 deletions Side-by-side Diff

fs/proc/proc_sysctl.c
... ... @@ -408,10 +408,6 @@
408 408 *pentry = entry;
409 409 }
410 410  
411   -void register_sysctl_root(struct ctl_table_root *root)
412   -{
413   -}
414   -
415 411 /*
416 412 * sysctl_perm does NOT grant the superuser all rights automatically, because
417 413 * some sysctl variables are readonly even to root.
include/linux/sysctl.h
... ... @@ -180,7 +180,6 @@
180 180 int (*is_seen)(struct ctl_table_set *));
181 181 extern void retire_sysctl_set(struct ctl_table_set *set);
182 182  
183   -void register_sysctl_root(struct ctl_table_root *root);
184 183 struct ctl_table_header *__register_sysctl_table(
185 184 struct ctl_table_set *set,
186 185 const char *path, struct ctl_table *table);
... ... @@ -106,7 +106,6 @@
106 106 ret = register_pernet_subsys(&sysctl_pernet_ops);
107 107 if (ret)
108 108 goto out1;
109   - register_sysctl_root(&net_sysctl_root);
110 109 out:
111 110 return ret;
112 111 out1: