From: Wei Yongjun Date: Sat, 26 May 2018 09:48:53 +0000 (+0000) Subject: netfilter: nat: make symbol nat_hook static X-Git-Tag: v4.19~872^2~78^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88491c11b0fd66881becc418d9db52462ae41870;p=platform%2Fkernel%2Flinux-rpi.git netfilter: nat: make symbol nat_hook static Fixes the following sparse warning: net/netfilter/nf_nat_core.c:1039:20: warning: symbol 'nat_hook' was not declared. Should it be static? Signed-off-by: Wei Yongjun Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_nat_core.c b/net/netfilter/nf_nat_core.c index 821f8d8..b7df32a 100644 --- a/net/netfilter/nf_nat_core.c +++ b/net/netfilter/nf_nat_core.c @@ -1036,7 +1036,7 @@ static struct pernet_operations nat_net_ops = { .size = sizeof(struct nat_net), }; -struct nf_nat_hook nat_hook = { +static struct nf_nat_hook nat_hook = { .parse_nat_setup = nfnetlink_parse_nat_setup, #ifdef CONFIG_XFRM .decode_session = __nf_nat_decode_session,