Commit b54807fa52ae21bdf6bad72b0f00fd400af412eb
1 parent
040757f738
Exists in
smarc_imx_lf-5.15.y
and in
20 other branches
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); |