sysctl net: Remove macro checks for CONFIG_SYSCTL
authorDenis Kirjanov <kirjanov@gmail.com>
Sun, 19 Jan 2025 13:42:53 +0000 (16:42 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 20 Jan 2025 20:01:34 +0000 (12:01 -0800)
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>
net/dccp/sysctl.c
net/llc/sysctl_net_llc.c

index 3fc474d..b15845f 100644 (file)
 #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,
index 72e1011..c8d88e2 100644 (file)
 #include <net/net_namespace.h>
 #include <net/llc.h>
 
-#ifndef CONFIG_SYSCTL
-#error This file should not be compiled without CONFIG_SYSCTL defined
-#endif
-
 static struct ctl_table llc2_timeout_table[] = {
        {
                .procname       = "ack",