]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
netfilter: ipt_CLUSTERIP: make symbol 'cip_netdev_notifier' static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 16 Feb 2019 08:16:06 +0000 (08:16 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 16 Feb 2019 09:43:56 +0000 (10:43 +0100)
Fixes the following sparse warnings:

net/ipv4/netfilter/ipt_CLUSTERIP.c:867:23: warning:
 symbol 'cip_netdev_notifier' was not declared. Should it be static?

Fixes: 5a86d68bcf02 ("netfilter: ipt_CLUSTERIP: fix deadlock in netns exit routine")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/ipt_CLUSTERIP.c

index b61977db9b7ffd781f5ec4b8eac4dc9a59613751..91b369bc44f92d35ecfa175b03650e7697dff095 100644 (file)
@@ -864,7 +864,7 @@ static struct pernet_operations clusterip_net_ops = {
        .size = sizeof(struct clusterip_net),
 };
 
-struct notifier_block cip_netdev_notifier = {
+static struct notifier_block cip_netdev_notifier = {
        .notifier_call = clusterip_netdev_event
 };