netdevsim: Make nsim_num_vf static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 4 May 2019 08:12:07 +0000 (16:12 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 17:48:45 +0000 (10:48 -0700)
Fix sparse warning:

drivers/net/netdevsim/bus.c:253:5: warning:
 symbol 'nsim_num_vf' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bus.c

index fd68eeac574c6bde33b551f6d56c680825599041..1a0ff3d7747b258065dbc465dd9799bbbc0f6fd4 100644 (file)
@@ -250,7 +250,7 @@ static int nsim_bus_remove(struct device *dev)
        return 0;
 }
 
-int nsim_num_vf(struct device *dev)
+static int nsim_num_vf(struct device *dev)
 {
        struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev);