net: ipmr: make function ipmr_notifier_init static
Subsystems (4)
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?
Signed-off-by Colin Ian King <[email protected]>
--- net/ipv4/ipmr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/ipmr.c +1 -1
@@ -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
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_initis 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?Signed-off-by Colin Ian King <[email protected]>
Applied, thank you.