Skip to content

Commit 19d7750

Browse files
kda88kuba-moo
authored andcommitted
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>
1 parent 4fd001f commit 19d7750

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

net/dccp/sysctl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#include "dccp.h"
1212
#include "feat.h"
1313

14-
#ifndef CONFIG_SYSCTL
15-
#error This file should not be compiled without CONFIG_SYSCTL defined
16-
#endif
17-
1814
/* Boundary values */
1915
static int u8_max = 0xFF;
2016
static unsigned long seqw_min = DCCPF_SEQ_WMIN,

net/llc/sysctl_net_llc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#include <net/net_namespace.h>
1212
#include <net/llc.h>
1313

14-
#ifndef CONFIG_SYSCTL
15-
#error This file should not be compiled without CONFIG_SYSCTL defined
16-
#endif
17-
1814
static struct ctl_table llc2_timeout_table[] = {
1915
{
2016
.procname = "ack",

0 commit comments

Comments
 (0)