netfilter: core: make local function __nf_unregister_net_hook static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Jan 2018 07:05:06 +0000 (07:05 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2018 14:32:14 +0000 (15:32 +0100)
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>
net/netfilter/core.c

index 997dd38..3f8e2d0 100644 (file)
@@ -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;