summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDenis Kirjanov <kirjanov@gmail.com>2025-01-19 16:42:53 +0300
committerJakub Kicinski <kuba@kernel.org>2025-01-20 12:01:34 -0800
commit19d7750a06bb6063c8bcf2630766516215dc13dc (patch)
treee963eaecb0b653b5234e0fce4a7d301e6e7b5ba3 /net
parent4fd001f5f32deb4c5e9dcd05612f8371b79d380e (diff)
downloadlinux-19d7750a06bb6063c8bcf2630766516215dc13dc.tar.gz
linux-19d7750a06bb6063c8bcf2630766516215dc13dc.tar.bz2
linux-19d7750a06bb6063c8bcf2630766516215dc13dc.zip
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>
Diffstat (limited to 'net')
-rw-r--r--net/dccp/sysctl.c4
-rw-r--r--net/llc/sysctl_net_llc.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/net/dccp/sysctl.c b/net/dccp/sysctl.c
index 3fc474d6e57d..b15845fd6300 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 72e101135f8c..c8d88e2508fc 100644
--- a/net/llc/sysctl_net_llc.c
+++ b/net/llc/sysctl_net_llc.c
@@ -11,10 +11,6 @@
#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",