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 3fc474d6e57ddacb00ef7c03b965d79fda3f5873..b15845fd6300122eb809dce7b9edca43a1323db7 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 72e101135f8cbcce91ec01397041537e394c8871..c8d88e2508fce00054d3718af022e46f8df8d606 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",