From: Denis Kirjanov Date: Sun, 19 Jan 2025 13:42:53 +0000 (+0300) Subject: sysctl net: Remove macro checks for CONFIG_SYSCTL X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=19d7750a06bb6063c8bcf2630766516215dc13dc;p=users%2Fdwmw2%2Flinux.git 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 Link: https://patch.msgid.link/20250119134254.19250-1-kirjanov@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c index 3fc474d6e57dd..b15845fd63001 100644 --- a/net/dccp/sysctl.c +++ b/net/dccp/sysctl.c @@ -11,10 +11,6 @@ #include "dccp.h" #include "feat.h" -#ifndef CONFIG_SYSCTL -#error This file should not be compiled without CONFIG_SYSCTL defined -#endif - /* Boundary values */ static int u8_max = 0xFF; static unsigned long seqw_min = DCCPF_SEQ_WMIN, diff --git a/net/llc/sysctl_net_llc.c b/net/llc/sysctl_net_llc.c index 72e101135f8cb..c8d88e2508fce 100644 --- a/net/llc/sysctl_net_llc.c +++ b/net/llc/sysctl_net_llc.c @@ -11,10 +11,6 @@ #include #include -#ifndef CONFIG_SYSCTL -#error This file should not be compiled without CONFIG_SYSCTL defined -#endif - static struct ctl_table llc2_timeout_table[] = { { .procname = "ack",