Thread (6 messages) 6 messages, 3 authors, 2011-01-22

Re: [PATCH] netfilter: ipvs: fix compiler warnings

flat view

From: Changli Gao <hidden>
Date: 2011-01-22 02:34:23
Also in: lvs-devel, netfilter-devel

On Sat, Jan 22, 2011 at 10:22 AM, Simon Horman [off-list ref] wrote:
On Fri, Jan 21, 2011 at 06:02:13PM +0800, Changli Gao wrote:
quoted
Fix compiler warnings when no transport protocol load balancing support
is configured.

Signed-off-by: Changli Gao <redacted>
---
 net/netfilter/ipvs/ip_vs_core.c  |    4 +---
 net/netfilter/ipvs/ip_vs_ctl.c   |    4 ++++
 net/netfilter/ipvs/ip_vs_proto.c |    4 ++++
 3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index f36a84f..d889f4f 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -1894,9 +1894,7 @@ static int __net_init __ip_vs_init(struct net *net)
 static void __net_exit __ip_vs_cleanup(struct net *net)
 {
-     struct netns_ipvs *ipvs = net_ipvs(net);
-
-     IP_VS_DBG(10, "ipvs netns %d released\n", ipvs->gen);
+     IP_VS_DBG(10, "ipvs netns %d released\n", net_ipvs(net)->gen);
 }
The hunk above seems unrelated to the problem described.
The rest of the changes look good. I will double check and
apply them to my tree.
Yes, is a separated patch needed? It is trivial. Thanks.

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help