Skip to content

Commit

Permalink
sysctl net: Remove macro checks for CONFIG_SYSCTL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis Kirjanov authored and Jakub Kicinski committed Jan 20, 2025
1 parent 4fd001f commit 19d7750
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions net/dccp/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions net/llc/sysctl_net_llc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 19d7750

Please sign in to comment.