[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151201074859.GA22945@verge.net.au>
Date: Tue, 1 Dec 2015 16:48:59 +0900
From: Simon Horman <horms@...ge.net.au>
To: Julian Anastasov <ja@....bg>
Cc: Arnd Bergmann <arnd@...db.de>,
Wensong Zhang <wensong@...ux-vs.org>,
lvs-devel@...r.kernel.org, Pablo Neira Ayuso <pablo@...filter.org>,
Patrick McHardy <kaber@...sh.net>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org
Subject: Re: [PATCH] netfilter: ipvs: avoid unused variable warning
On Mon, Nov 30, 2015 at 10:48:34PM +0200, Julian Anastasov wrote:
>
> Hello,
>
> On Mon, 30 Nov 2015, Arnd Bergmann wrote:
>
> > When CONFIG_PROC_FS is disabled, the local 'net' variable in
> > ip_vs_app_net_init becomes unused, as gcc warns:
> >
> > net/netfilter/ipvs/ip_vs_app.c: In function 'ip_vs_app_net_init':
> > net/netfilter/ipvs/ip_vs_app.c:608:14: warning: unused variable 'net' [-Wunused-variable]
> >
> > This removes the line by moving the pointer dereference into the
> > user of the variable.
> >
> > Signed-off-by: Arnd Bergmann <arnd@...db.de>
>
> Acked-by: Julian Anastasov <ja@....bg>
Thanks, applied to ipvs-next.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists