diff options
author | Zhu Wang <wangzhu9@huawei.com> | 2023-07-26 18:15:31 +0800 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-07-27 13:45:51 +0200 |
commit | a927d77778e380ffd6ffea1f2037c6bdb23af99a (patch) | |
tree | 585f0d290b84134d14d58425202ba57dfb610256 /lib/nlattr.c | |
parent | bc758ade614576d1c1b167af0246ada8c916c804 (diff) |
nf_conntrack: fix -Wunused-const-variable=
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@huawei.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'lib/nlattr.c')
0 files changed, 0 insertions, 0 deletions