Skip to contentSkip to conversation

net: ipmr: make function ipmr_notifier_init static

PATCH Applied Colin King 2 participants 2 messages Sep 29, 2017 – Oct 1, 2017

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 net: ipmr: make function ipmr_notifier_init static

From: Colin Ian King <[email protected]>

The function ipmr_notifier_init is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
warning: symbol 'ipmr_notifier_init' was not declared. Should it be static?

---
 net/ipv4/ipmr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/ipmr.c +1 -1
index 292a8e80bdfa..a844738b38bd 100644
@@ -3224,7 +3224,7 @@ static const struct fib_notifier_ops ipmr_notifier_ops_template = {
 	.owner		= THIS_MODULE,
 };
 
-int __net_init ipmr_notifier_init(struct net *net)
+static int __net_init ipmr_notifier_init(struct net *net)
 {
 	struct fib_notifier_ops *ops;
 
Signature · 1 line
2.14.1
maintainer Applied
#1 lore raw

From: Colin King <[email protected]>
Date: Fri, 29 Sep 2017 14:34:22 +0100

Quoted 9 lines

From: Colin Ian King <[email protected]>

The function ipmr_notifier_init is local to the source and does not need to be in global scope, so make it static.

Cleans up sparse warning:
warning: symbol 'ipmr_notifier_init' was not declared. Should it be static?

Applied, thank you.