netdevsim: Make nsim_num_vf static

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>
This commit is contained in:
YueHaibing 2019-05-04 16:12:07 +08:00 committed by David S. Miller
parent c424d22440
commit 69bbbdc5e1
1 changed files with 1 additions and 1 deletions

View 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);