From: Tonghao Zhang <xiangxia.m.yue@xxxxxxxxx> This patchset introduce sysctl macro or replace var with macro. Tonghao Zhang (3): net: sysctl: use shared sysctl macro net: sysctl: introduce sysctl SYSCTL_THREE selftests/sysctl: add sysctl macro test fs/proc/proc_sysctl.c | 2 +- include/linux/sysctl.h | 9 ++--- lib/test_sysctl.c | 21 ++++++++++++ net/core/sysctl_net_core.c | 13 +++---- net/ipv4/sysctl_net_ipv4.c | 16 ++++----- net/ipv6/sysctl_net_ipv6.c | 6 ++-- net/netfilter/ipvs/ip_vs_ctl.c | 4 +-- tools/testing/selftests/sysctl/sysctl.sh | 43 ++++++++++++++++++++++++ 8 files changed, 84 insertions(+), 30 deletions(-) -- v4: add selftests/sysctl patch v3: split patch to two. Cc: Luis Chamberlain <mcgrof@xxxxxxxxxx> Cc: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Iurii Zaikin <yzaikin@xxxxxxxxxx> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx> Cc: Jakub Kicinski <kuba@xxxxxxxxxx> Cc: Paolo Abeni <pabeni@xxxxxxxxxx> Cc: Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxx> Cc: David Ahern <dsahern@xxxxxxxxxx> Cc: Simon Horman <horms@xxxxxxxxxxxx> Cc: Julian Anastasov <ja@xxxxxx> Cc: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> Cc: Jozsef Kadlecsik <kadlec@xxxxxxxxxxxxx> Cc: Florian Westphal <fw@xxxxxxxxx> Cc: Shuah Khan <shuah@xxxxxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: Alexei Starovoitov <ast@xxxxxxxxxx> Cc: Eric Dumazet <edumazet@xxxxxxxxxx> Cc: Lorenz Bauer <lmb@xxxxxxxxxxxxxx> Cc: Akhmat Karakotov <hmukos@xxxxxxxxxxxxxx> -- 2.27.0