Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysctl net: Remove macro checks for CONFIG_SYSCTL

Since dccp and llc makefiles already check sysctl code
compilation with xxx-$(CONFIG_SYSCTL)
we can drop the checks

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
Link: https://patch.msgid.link/20250119134254.19250-1-kirjanov@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Denis Kirjanov and committed by
Jakub Kicinski
19d7750a 4fd001f5

-8
-4
net/dccp/sysctl.c
··· 11 11 #include "dccp.h" 12 12 #include "feat.h" 13 13 14 - #ifndef CONFIG_SYSCTL 15 - #error This file should not be compiled without CONFIG_SYSCTL defined 16 - #endif 17 - 18 14 /* Boundary values */ 19 15 static int u8_max = 0xFF; 20 16 static unsigned long seqw_min = DCCPF_SEQ_WMIN,
-4
net/llc/sysctl_net_llc.c
··· 11 11 #include <net/net_namespace.h> 12 12 #include <net/llc.h> 13 13 14 - #ifndef CONFIG_SYSCTL 15 - #error This file should not be compiled without CONFIG_SYSCTL defined 16 - #endif 17 - 18 14 static struct ctl_table llc2_timeout_table[] = { 19 15 { 20 16 .procname = "ack",