提交 a5e57336 编写于 作者: W Wei Yongjun 提交者: Pablo Neira Ayuso

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: NWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 8d6c0eaa
...@@ -37,7 +37,7 @@ static void nft_hash_eval(const struct nft_expr *expr, ...@@ -37,7 +37,7 @@ static void nft_hash_eval(const struct nft_expr *expr,
priv->modulus); 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_SREG] = { .type = NLA_U32 },
[NFTA_HASH_DREG] = { .type = NLA_U32 }, [NFTA_HASH_DREG] = { .type = NLA_U32 },
[NFTA_HASH_LEN] = { .type = NLA_U32 }, [NFTA_HASH_LEN] = { .type = NLA_U32 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册