From: Wei Yongjun Date: Sun, 21 Aug 2016 15:21:10 +0000 (+0000) Subject: netfilter: nft_hash: fix non static symbol warning X-Git-Tag: v4.14-rc1~2374^2~291^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5e57336451d1ad75c24b9f7e60825f12f117ee0;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nft_hash.c b/net/netfilter/nft_hash.c index b82ff29..e090aee 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 },