sysctl net: Remove macro checks for CONFIG_SYSCTL
Subsystems (3)
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
Signed-off-by Denis Kirjanov <[email protected]>
--- net/dccp/sysctl.c | 4 ---- net/llc/sysctl_net_llc.c | 4 ---- 2 files changed, 8 deletions(-)
net/dccp/sysctl.c +0 -4
@@ -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
@@ -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
Quoted 2 lines · Denis Kirjanov
Since dccp and llc makefiles already check sysctl code compilation witn xxx-$(CONFIG_SYSCTL)
nit: with
Quoted 3 lines
we can drop the checks
Signed-off-by Denis Kirjanov <[email protected]>
Reviewed-by Simon Horman <[email protected]>