diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-04 16:12:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-05 10:48:45 -0700 |
commit | 69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621 (patch) | |
tree | 9ed56cf84f3eb9b4074a930423cb871dc06596bc /drivers/net/netdevsim/bus.c | |
parent | c424d224404e9d565202979de119b04a68d34dee (diff) | |
download | linux-stable-69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621.tar.gz linux-stable-69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621.tar.bz2 linux-stable-69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621.zip |
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>
Diffstat (limited to 'drivers/net/netdevsim/bus.c')
-rw-r--r-- | drivers/net/netdevsim/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/bus.c b/drivers/net/netdevsim/bus.c index fd68eeac574c..1a0ff3d7747b 100644 --- a/drivers/net/netdevsim/bus.c +++ b/drivers/net/netdevsim/bus.c @@ -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); |