kernel: remove unnecessary head file
Subsystems (3)
PATCH 1/2 kernel: remove unnecessary head file
From: JunweiZhang <[email protected]>
ip_vs.h is not necessary for sysctl_binary.c.
prepare for the next patch to avoid compile issue.
Signed-off-by JunweiZhang <[email protected]>
Signed-off-by Nicolas Dichtel <[email protected]>
--- kernel/sysctl_binary.c | 1 - 1 file changed, 1 deletion(-)
kernel/sysctl_binary.c +0 -1
@@ -3,7 +3,6 @@#include "../fs/xfs/xfs_sysctl.h" #include <linux/sunrpc/debug.h> #include <linux/string.h> -#include <net/ip_vs.h> #include <linux/syscalls.h> #include <linux/namei.h> #include <linux/mount.h>
Signature · 1 line
1.8.1.2
PATCH 2/2 netns: exclude ipvs from struct net when IPVS disabled
From: JunweiZhang <[email protected]>
no real problem is fixed, just save a few bytes in net_namespace structure.
Signed-off-by JunweiZhang <[email protected]>
Signed-off-by Nicolas Dichtel <[email protected]>
--- include/net/net_namespace.h | 2 ++ 1 file changed, 2 insertions(+)
include/net/net_namespace.h +2 -0
@@ -115,7 +115,9 @@ struct net {#ifdef CONFIG_XFRM struct netns_xfrm xfrm;#endif +#if IS_ENABLED (CONFIG_IP_VS )struct netns_ipvs *ipvs; +#endif struct sock *diag_nlsk;atomic_t rt_genid; };
Signature · 1 line
1.8.1.2