[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160113164903.GA4121@salvia>
Date: Wed, 13 Jan 2016 17:49:03 +0100
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Patrick McHardy <kaber@...sh.net>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
"David S. Miller" <davem@...emloft.net>,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Florian Westphal <fw@...len.de>
Subject: Re: [PATCH] netfilter: nft_ct: mark nft_ct_get_eval_counter
__maybe_unused
On Wed, Jan 13, 2016 at 04:54:24PM +0100, Pablo Neira Ayuso wrote:
> On Wed, Jan 13, 2016 at 02:58:11PM +0100, Arnd Bergmann wrote:
> > The newly added nft_ct_get_eval_counter() function is only used when
> > CONFIG_NF_CONNTRACK_LABELS is set, otherwise gcc warns about the
> > unused definition:
> >
> > netfilter/nft_ct.c:34:12: warning: 'nft_ct_get_eval_counter' defined but not used [-Wunused-function]
> > static u64 nft_ct_get_eval_counter(const struct nf_conn_counter *c,
> >
> > This marks the function __maybe_unused to shut up the warning.
>
> It seems that function doesn't below to CONFIG_NF_CONNTRACK_LABELS as
> it is part of the new counter support. Will be sending an alternate
> patch instead.
Just for the record, I submitted this fix:
http://patchwork.ozlabs.org/patch/567063/
Powered by blists - more mailing lists