Skip to content

Commit 88491c1

Browse files
Wei Yongjunummakynes
authored andcommitted
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 <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 0cbc06b commit 88491c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_nat_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ static struct pernet_operations nat_net_ops = {
10361036
.size = sizeof(struct nat_net),
10371037
};
10381038

1039-
struct nf_nat_hook nat_hook = {
1039+
static struct nf_nat_hook nat_hook = {
10401040
.parse_nat_setup = nfnetlink_parse_nat_setup,
10411041
#ifdef CONFIG_XFRM
10421042
.decode_session = __nf_nat_decode_session,

0 commit comments

Comments
 (0)