Skip to contentSkip to conversation

netfilter: ipvs: fix compiler warnings

PATCH In review Changli Gao 5 participants 8 messages Jan 25, 2011

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

PATCH 1/1 netfilter: ipvs: fix compiler warnings

Fix compiler warnings when IP_VS_DBG() isn't defined.

---
 net/netfilter/ipvs/ip_vs_core.c  |    4 +---
 3 files changed, 9 insertions(+), 3 deletions(-)
net/netfilter/ipvs/ip_vs_core.c +0 -1
index f36a84f..d889f4f 100644
@@ -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);
Acked-by on v1 1/1
#7 lore raw
In reply to Changli Gao
Quoted 3 lines · On Tuesday, January 25, 2011 05:40:18 Changli Gao wrote:

Fix compiler warnings when IP_VS_DBG() isn't defined.

Quoted 9 lines
---
 net/netfilter/ipvs/ip_vs_core.c  |    4 +---
 3 files changed, 9 insertions(+), 3 deletions(-)
net/netfilter/ipvs/ip_vs_core.c +0 -0
index f36a84f..d889f4f 100644
@@ -1894,9 +1894,7 @@ static int __net_init __ip_vs_init(struct net *net)
 

net/netfilter/ipvs/ip_vs_core.c static int __net_init __ip_vs_init(struct net *net)

Quoted 10 lines
net/netfilter/ipvs/ip_vs_core.c +1 -4
 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);
 }
 
 static struct pernet_operations ipvs_core_ops = {
--

Thanks I forgot that one.

Regards
Hans Schillstrom

maintainer
#3 lore raw
Quoted 10 lines · Patrick McHardy
Quoted 6 lines · Simon Horman
Quoted 3 lines · Changli Gao

Fix compiler warnings when IP_VS_DBG() isn't defined.

Thanks, I will queue this up for when nf-next-2.6 is open again.

It's already open.

Hi Patrick,

I'm a little unsure how you would like me to differentiate between fixes for 2.6.38 - e.g. my previous two pull requests. And patches intended for 2.6.39.

In any case I will send a pull request that includes Changli's change against nf-next-2.6.

maintainer
#4 lore raw
Quoted 12 lines · Simon Horman
Quoted 10 lines · Patrick McHardy
Quoted 6 lines · Simon Horman
Quoted 3 lines · Changli Gao

Fix compiler warnings when IP_VS_DBG() isn't defined.

Thanks, I will queue this up for when nf-next-2.6 is open again.

It's already open.

Quoted 8 lines

Hi Patrick,

I'm a little unsure how you would like me to differentiate between fixes for 2.6.38 - e.g. my previous two pull requests. And patches intended for 2.6.39.

In any case I will send a pull request that includes Changli's change against nf-next-2.6.

Actually, I realise that Changli's change is actually 2.6.38 material. I'll send a pull request. Please ignore my noise about 2.6.39.

#6 lore raw
In reply to Simon Horman
Quoted 9 lines · Simon Horman
Quoted 8 lines · Patrick McHardy
Quoted 6 lines · Simon Horman
Quoted 3 lines · Changli Gao

Fix compiler warnings when IP_VS_DBG() isn't defined.

Thanks, I will queue this up for when nf-next-2.6 is open again.

Quoted 8 lines
Quoted 2 lines

It's already open.

Hi Patrick,

I'm a little unsure how you would like me to differentiate between fixes for 2.6.38 - e.g. my previous two pull requests. And patches intended for 2.6.39.

Oh, I thought those were intended for -next because it included a netns fix. Best is to just state the intended tree in your pull request.

Quoted 2 lines

In any case I will send a pull request that includes Changli's change against nf-next-2.6.

Thanks.

maintainer
#5 lore raw
In reply to Simon Horman

Hello,

Quoted 6 lines · Simon Horman
Quoted 6 lines

Hi Patrick,

I'm a little unsure how you would like me to differentiate between fixes for 2.6.38 - e.g. my previous two pull requests. And patches intended for 2.6.39.

Quoted 6 lines
Quoted 2 lines

In any case I will send a pull request that includes Changli's change against nf-next-2.6.

Actually, I realise that Changli's change is actually 2.6.38 material. I'll send a pull request. Please ignore my noise about 2.6.39.

Simon, I don't see IPVS netns work in 2.6.38-rc2,
so these changes are not for 2.6.38-rc.

Regards

--
Julian Anastasov <[email protected]>