]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sysctl: Add CONFIG_PROC_SYSCTL guards for converter macros
authorJoel Granados <joel.granados@kernel.org>
Fri, 5 Dec 2025 10:18:43 +0000 (11:18 +0100)
committerJoel Granados <joel.granados@kernel.org>
Mon, 5 Jan 2026 13:10:32 +0000 (14:10 +0100)
commit6036dc03c39a3cb0df14899f29323b6b4b58dfe9
tree65c0ed45c436ae7084c2686ea2cc7a5bd07b1017
parentac3d6a4b60ef1b26b29517d35ca28966142fc65e
sysctl: Add CONFIG_PROC_SYSCTL guards for converter macros

Wrap sysctl converter macros with CONFIG_PROC_SYSCTL conditional
compilation. When CONFIG_PROC_SYSCTL is disabled, provide stub
implementations that return -ENOSYS to prevent link errors while
maintaining API compatibility.

This ensures converter macros are only compiled when procfs sysctl
support is enabled in the kernel configuration.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
include/linux/sysctl.h