diff mbox series

[net-next] netfilter: ipt_CLUSTERIP: make symbol 'cip_netdev_notifier' static

Message ID 20190216081606.91596-1-weiyongjun1@huawei.com
State Awaiting Upstream
Delegated to: David Miller
Headers show
Series [net-next] netfilter: ipt_CLUSTERIP: make symbol 'cip_netdev_notifier' static | expand

Commit Message

Wei Yongjun Feb. 16, 2019, 8:16 a.m. UTC
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>
---
 net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Pablo Neira Ayuso Feb. 16, 2019, 9:44 a.m. UTC | #1
On Sat, Feb 16, 2019 at 08:16:06AM +0000, Wei Yongjun wrote:
> 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?

Applied, thanks.
diff mbox series

Patch

diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c
index b61977d..91b369b 100644
--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -864,7 +864,7 @@  static void clusterip_net_exit(struct net *net)
 	.size = sizeof(struct clusterip_net),
 };
 
-struct notifier_block cip_netdev_notifier = {
+static struct notifier_block cip_netdev_notifier = {
 	.notifier_call = clusterip_netdev_event
 };