projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cbc06b
)
netfilter: nat: make symbol nat_hook static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Sat, 26 May 2018 09:48:53 +0000
(09:48 +0000)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Tue, 29 May 2018 12:50:26 +0000
(14:50 +0200)
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 <weiyongjun1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_core.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_nat_core.c
b/net/netfilter/nf_nat_core.c
index 821f8d835f7ad7cab6cdbcba56fd4f2832dfd47d..b7df32a56e7ed2b495e39b54a7219a59af1531e4 100644
(file)
--- 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 = {
+st
atic st
ruct nf_nat_hook nat_hook = {
.parse_nat_setup = nfnetlink_parse_nat_setup,
#ifdef CONFIG_XFRM
.decode_session = __nf_nat_decode_session,