Skip to content

Commit

Permalink
netfilter: nft_hash: fix non static symbol warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Pablo Neira Ayuso committed Aug 22, 2016
1 parent 8d6c0ea commit a5e5733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nft_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit a5e5733

Please sign in to comment.