From: YueHaibing Date: Sat, 4 May 2019 09:57:55 +0000 (+0800) Subject: net: aquantia: Make aq_ndev_driver_name static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=44bec4b3bd71a169f967cae8d5ad503e60f0a165;p=openwrt%2Fstaging%2Fblogic.git net: aquantia: Make aq_ndev_driver_name static Fix sparse warning: drivers/net/ethernet/aquantia/atlantic/aq_main.c:26:12: warning: symbol 'aq_ndev_driver_name' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_main.c b/drivers/net/ethernet/aquantia/atlantic/aq_main.c index 7f45e9908582..1ea8b77fc1a7 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_main.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_main.c @@ -23,7 +23,7 @@ MODULE_VERSION(AQ_CFG_DRV_VERSION); MODULE_AUTHOR(AQ_CFG_DRV_AUTHOR); MODULE_DESCRIPTION(AQ_CFG_DRV_DESC); -const char aq_ndev_driver_name[] = AQ_CFG_DRV_NAME; +static const char aq_ndev_driver_name[] = AQ_CFG_DRV_NAME; static const struct net_device_ops aq_ndev_ops;