All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] netfilter: nft_hash: fix non static symbol warning
@ 2016-08-21 15:21 Wei Yongjun
  2016-08-22  9:45 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-08-21 15:21 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Patrick McHardy, Jozsef Kadlecsik, David S. Miller
  Cc: Wei Yongjun, netfilter-devel, coreteam, netdev, Wei Yongjun

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>
---
 net/netfilter/nft_hash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 },

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] netfilter: nft_hash: fix non static symbol warning
  2016-08-21 15:21 [PATCH -next] netfilter: nft_hash: fix non static symbol warning Wei Yongjun
@ 2016-08-22  9:45 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2016-08-22  9:45 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Patrick McHardy, Jozsef Kadlecsik, David S. Miller,
	netfilter-devel, coreteam, netdev, Wei Yongjun

On Sun, Aug 21, 2016 at 03:21:10PM +0000, Wei Yongjun wrote:
> Fixes the following sparse warning:
> 
> net/netfilter/nft_hash.c:40:25: warning:
>  symbol 'nft_hash_policy' was not declared. Should it be static?

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-22  9:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-21 15:21 [PATCH -next] netfilter: nft_hash: fix non static symbol warning Wei Yongjun
2016-08-22  9:45 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.