Messages in this thread | | | From | Joel Granados <> | Subject | [PATCH 0/2] sysctl: Remove register_sysctl_table from sources | Date | Thu, 18 May 2023 18:07:03 +0200 |
| |
This is part of the general push to deprecate register_sysctl_paths and register_sysctl_table. This patchset completely removes register_sysctl_table and replaces it with register_sysctl effectively transitioning 5 base paths ("kernel", "vm", "fs", "dev" and "debug") to the new call. Besides removing the actuall function, I also removed it from the checks done in check-sysctl-docs.
Testing for this change was done in the same way as with previous sysctl replacement patches: I made sure that the result of `find /proc/sys/ | sha1sum` was the same before and after the patchset.
Have pushed this through 0-day. Waiting on results..
Feedback greatly appreciated.
Best Joel
Joel Granados (2): sysctl: Refactor base paths registrations sysctl: Remove register_sysctl_table
fs/proc/proc_sysctl.c | 70 --------------------------------------- fs/sysctls.c | 9 +++-- include/linux/sysctl.h | 23 ------------- kernel/sysctl.c | 13 +++----- scripts/check-sysctl-docs | 10 ------ 5 files changed, 10 insertions(+), 115 deletions(-)
-- 2.30.2
| |