diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-10 10:05:06 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-01-10 17:32:14 +0300 |
commit | 0ded1785f3c810182408f9498a726e89267b0275 (patch) | |
tree | 940f92cd7ff65b32672772163feb9b02219d097d /net/netfilter/core.c | |
parent | 03a0120f75dfb1807c0441376e26b36160087de4 (diff) | |
download | linux-0ded1785f3c810182408f9498a726e89267b0275.tar.xz |
netfilter: core: make local function __nf_unregister_net_hook static
Fixes the following sparse warning:
net/netfilter/core.c:380:6: warning:
symbol '__nf_unregister_net_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>
Diffstat (limited to 'net/netfilter/core.c')
-rw-r--r-- | net/netfilter/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index 997dd387d259..3f8e2d06b9cc 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -377,8 +377,8 @@ static void nf_remove_net_hook(struct nf_hook_entries *old, } } -void __nf_unregister_net_hook(struct net *net, int pf, - const struct nf_hook_ops *reg) +static void __nf_unregister_net_hook(struct net *net, int pf, + const struct nf_hook_ops *reg) { struct nf_hook_entries __rcu **pp; struct nf_hook_entries *p; |