Skip to contentSkip to conversation

kernel: remove unnecessary head file

PATCH New [email protected] 1 participant 2 messages Jun 14, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/sysctl_binary.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sysctl_binary.c +0 -1
index aea4a9e..b609213 100644
@@ -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
#1 lore raw

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.

---
 include/net/net_namespace.h | 2 ++
 1 file changed, 2 insertions(+)
include/net/net_namespace.h +2 -0
index b176978..c2bf266 100644
@@ -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