Skip to contentSkip to conversation

sysctl net: Remove macro checks for CONFIG_SYSCTL

PATCH Superseded Denis Kirjanov 2 participants 2 messages Jan 17, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysctl net: Remove macro checks for CONFIG_SYSCTL

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

---
 net/dccp/sysctl.c        | 4 ----
 net/llc/sysctl_net_llc.c | 4 ----
 2 files changed, 8 deletions(-)
net/dccp/sysctl.c +0 -4
index 3fc474d6e57d..b15845fd6300 100644
@@ -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,
net/llc/sysctl_net_llc.c +0 -4
index 72e101135f8c..c8d88e2508fc 100644
@@ -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",
Signature · 1 line
2.43.0