Commit 224a876
netfilter: conntrack: define variables exp_nat_nla_policy and any_addr with CONFIG_NF_NAT
gcc with W=1 and ! CONFIG_NF_NAT
net/netfilter/nf_conntrack_netlink.c:3463:32: error:
‘exp_nat_nla_policy’ defined but not used [-Werror=unused-const-variable=]
3463 | static const struct nla_policy exp_nat_nla_policy[CTA_EXPECT_NAT_MAX+1] = {
| ^~~~~~~~~~~~~~~~~~
net/netfilter/nf_conntrack_netlink.c:2979:33: error:
‘any_addr’ defined but not used [-Werror=unused-const-variable=]
2979 | static const union nf_inet_addr any_addr;
| ^~~~~~~~
These variables use is controlled by CONFIG_NF_NAT, so should their definitions.
Signed-off-by: Tom Rix <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>1 parent ab87603 commit 224a876
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2976 | 2976 | | |
2977 | 2977 | | |
2978 | 2978 | | |
| 2979 | + | |
2979 | 2980 | | |
| 2981 | + | |
2980 | 2982 | | |
2981 | 2983 | | |
2982 | 2984 | | |
| |||
3460 | 3462 | | |
3461 | 3463 | | |
3462 | 3464 | | |
| 3465 | + | |
3463 | 3466 | | |
3464 | 3467 | | |
3465 | 3468 | | |
3466 | 3469 | | |
| 3470 | + | |
3467 | 3471 | | |
3468 | 3472 | | |
3469 | 3473 | | |
| |||
0 commit comments