]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: ipmr: make function ipmr_notifier_init static
authorColin Ian King <colin.king@canonical.com>
Fri, 29 Sep 2017 13:34:22 +0000 (14:34 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2017 03:06:29 +0000 (04:06 +0100)
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 <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c

index 292a8e80bdfaa8242240ace8ee6b35e51d541239..a844738b38bd4ebd33a7797fd2e6df0d1184efce 100644 (file)
@@ -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;