From: Wei Yongjun Date: Wed, 10 Jan 2018 07:05:06 +0000 (+0000) Subject: netfilter: core: make local function __nf_unregister_net_hook static X-Git-Tag: v4.16-rc1~123^2~108^2~22 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0ded1785f3c810182408f9498a726e89267b0275;p=linux.git 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 Signed-off-by: Pablo Neira Ayuso --- 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;