From: YueHaibing Date: Sat, 4 May 2019 08:12:07 +0000 (+0800) Subject: netdevsim: Make nsim_num_vf static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: YueHaibing Acked-by: Jakub Kicinski Signed-off-by: David S. Miller --- 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);