Skip to contentSkip to conversation

kernel: remove unnecessary head file

PATCH Superseded [email protected] 4 participants 10 messages Jun 21, 2013 – Jun 26, 2013

Subsystems (4)
lore
Share & tools
lore
#1 lore raw

PATCH 2/2 netns: exclude ipvs from struct net when IPVS disabled

In reply to [email protected]

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
#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
maintainer Reviewed-by on v1 1/2
#2 lore raw

Hello,

Quoted 8 lines · On Fri, 21 Jun 2013, [email protected] wrote:

From: JunweiZhang <[email protected]>

ip_vs.h is not necessary for sysctl_binary.c.

prepare for the next patch to avoid compile issue.

Both patches look good to me:

Please use version descriptor in future, for example:

[PATCHv2 ...] ...

Quoted 18 lines
---
 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

Regards

--
Julian Anastasov <[email protected]>

#5 lore raw

PATCH v2 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.

---
v2: rebase on net-next

 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
#6 lore raw

PATCH v2 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.

---
v2: rebase on net-next

 include/net/net_namespace.h | 2 ++
 1 file changed, 2 insertions(+)
include/net/net_namespace.h +2 -0
index 495bc57..84e37b1 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;
 	atomic_t		fnhe_genid;
Signature · 1 line
1.8.1.2
maintainer
#9 lore raw
In reply to David Miller
Quoted 2 lines · David Miller

These two patches do not apply to net-next.

The reposted versions seem to apply to ipvs-next.
I'll take them through there.

maintainer Applied
#8 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, Jun 26, 2013 at 04:40:05PM +0800, [email protected] wrote:

From: JunweiZhang <[email protected]>

ip_vs.h is not necessary for sysctl_binary.c.

prepare for the next patch to avoid compile issue.

Thanks, applied to ipvs-next.

Quoted 20 lines

---
v2: rebase on net-next

 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
maintainer Applied
#7 lore raw

Re: [PATCH v2 net-next 2/2] netns: exclude ipvs from struct net when IPVS disabled

In reply to [email protected]
Quoted 8 lines · On Wed, Jun 26, 2013 at 04:40:06PM +0800, [email protected] wrote:

From: JunweiZhang <[email protected]>

no real problem is fixed, just save a few bytes in net_namespace structure.

Thanks, applied to ipvs-next.