From: Simon Horman <horms@verge.net.au>
To: Julian Anastasov <ja@ssi.bg>
Cc: Arnd Bergmann <arnd@arndb.de>,
Wensong Zhang <wensong@linux-vs.org>,
lvs-devel@vger.kernel.org,
Pablo Neira Ayuso <pablo@netfilter.org>,
Patrick McHardy <kaber@trash.net>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"David S. Miller" <davem@davemloft.net>,
netdev@vger.kernel.org, netfilter-devel@vger.kernel.org,
coreteam@netfilter.org
Subject: Re: [PATCH] netfilter: ipvs: avoid unused variable warning
Date: Tue, 1 Dec 2015 16:48:59 +0900 [thread overview]
Message-ID: <20151201074859.GA22945@verge.net.au> (raw)
In-Reply-To: <alpine.LFD.2.11.1511302242210.1918@ja.home.ssi.bg>
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@arndb.de>
>
> Acked-by: Julian Anastasov <ja@ssi.bg>
Thanks, applied to ipvs-next.
prev parent reply other threads:[~2015-12-01 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 9:54 [PATCH] netfilter: ipvs: avoid unused variable warning Arnd Bergmann
2015-11-30 20:48 ` Julian Anastasov
2015-12-01 7:48 ` Simon Horman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151201074859.GA22945@verge.net.au \
--to=horms@verge.net.au \
--cc=arnd@arndb.de \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=ja@ssi.bg \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=lvs-devel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=wensong@linux-vs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).