[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZMEXLp4kyQj/Yb1/@corigine.com>
Date: Wed, 26 Jul 2023 14:53:02 +0200
From: Simon Horman <simon.horman@...igine.com>
To: Zhu Wang <wangzhu9@...wei.com>
Cc: pablo@...filter.org, kadlec@...filter.org, fw@...len.de,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, kaber@...sh.net, netfilter-devel@...r.kernel.org,
coreteam@...filter.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] nf_conntrack: fix -Wunused-const-variable=
On Wed, Jul 26, 2023 at 06:15:31PM +0800, Zhu Wang wrote:
> When building with W=1, the following warning occurs.
>
> net/netfilter/nf_conntrack_proto_dccp.c:72:27: warning: ‘dccp_state_names’ defined but not used [-Wunused-const-variable=]
> static const char * const dccp_state_names[] = {
>
> We include dccp_state_names in the macro
> CONFIG_NF_CONNTRACK_PROCFS, since it is only used in the place
> which is included in the macro CONFIG_NF_CONNTRACK_PROCFS.
>
> Fixes: 2bc780499aa3 ("[NETFILTER]: nf_conntrack: add DCCP protocol support")
> Signed-off-by: Zhu Wang <wangzhu9@...wei.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists