[PATCH -mm v2 0/1] sysctl: remove CONFIG_PROC_SYSCTL, it just mirrors CONFIG_SYSCTL

From: Oleg Nesterov

Date: Mon Jul 27 2026 - 10:59:36 EST


Andrew, this patch depends on

sysctl-move-the-cad_pid-entry-from-pid_table-to-kern_reboot_table.patch

in -mm tree, because that patch removes one CONFIG_PROC_SYSCTL too.

If this patch is accepted, I'll send a couple of followup cleanups:

kernel/sysctl.c:
collapse the now-identical CONFIG_SYSCTL nesting

drivers/parport/procfs.c, fs/dcache.c, and fs/file_table.c:
drop the CONFIG_PROC_FS checks, now it is clear that
CONFIG_SYSCTL depends on it

Oleg.
---

arch/m68k/configs/amcore_defconfig | 2 +-
arch/m68k/configs/stmark2_defconfig | 2 +-
arch/s390/Kconfig | 4 ++--
arch/x86/kernel/cpu/bus_lock.c | 2 +-
fs/proc/Kconfig | 3 +--
fs/proc/Makefile | 2 +-
fs/proc/internal.h | 2 +-
include/linux/utsname.h | 2 +-
init/Kconfig | 3 ---
kernel/delayacct.c | 2 +-
kernel/sched/core.c | 8 ++++----
kernel/sched/topology.c | 4 ++--
kernel/sysctl.c | 12 ++++++------
kernel/time/jiffies.c | 4 ++--
kernel/utsname_sysctl.c | 4 ++--
lib/Kconfig.debug | 2 +-
lib/test_sysctl.c | 2 +-
net/mpls/Kconfig | 2 +-
tools/testing/selftests/net/config | 2 +-
tools/testing/selftests/net/packetdrill/config | 2 +-
tools/testing/selftests/wireguard/qemu/kernel.config | 2 +-
21 files changed, 32 insertions(+), 36 deletions(-)