Commit 69bbbdc5 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c424d224
...@@ -250,7 +250,7 @@ static int nsim_bus_remove(struct device *dev) ...@@ -250,7 +250,7 @@ static int nsim_bus_remove(struct device *dev)
return 0; 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); struct nsim_bus_dev *nsim_bus_dev = to_nsim_bus_dev(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment