mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
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>
This commit is contained in:
parent
03a0120f75
commit
0ded1785f3
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
static void __nf_unregister_net_hook(struct net *net, int pf,
|
||||||
const struct nf_hook_ops *reg)
|
const struct nf_hook_ops *reg)
|
||||||
{
|
{
|
||||||
struct nf_hook_entries __rcu **pp;
|
struct nf_hook_entries __rcu **pp;
|
||||||
struct nf_hook_entries *p;
|
struct nf_hook_entries *p;
|
||||||
|
|
Loading…
Reference in a new issue