aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-21 15:21:10 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-22 11:45:41 +0200
commita5e57336451d1ad75c24b9f7e60825f12f117ee0 (patch)
tree38504a1d567427646afa3a7ef4fefac885be41e4 /net/netfilter
parentnetfilter: fix spelling mistake: "delimitter" -> "delimiter" (diff)
downloadlinux-dev-a5e57336451d1ad75c24b9f7e60825f12f117ee0.tar.xz
linux-dev-a5e57336451d1ad75c24b9f7e60825f12f117ee0.zip
netfilter: nft_hash: fix non static symbol warning
Fixes the following sparse warning: net/netfilter/nft_hash.c:40:25: warning: symbol 'nft_hash_policy' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nft_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c
index b82ff29b3f5f..e090aeef3a78 100644
--- a/net/netfilter/nft_hash.c
+++ b/net/netfilter/nft_hash.c
@@ -37,7 +37,7 @@ static void nft_hash_eval(const struct nft_expr *expr,
priv->modulus);
}
-const struct nla_policy nft_hash_policy[NFTA_HASH_MAX + 1] = {
+static const struct nla_policy nft_hash_policy[NFTA_HASH_MAX + 1] = {
[NFTA_HASH_SREG] = { .type = NLA_U32 },
[NFTA_HASH_DREG] = { .type = NLA_U32 },
[NFTA_HASH_LEN] = { .type = NLA_U32 },