net: aquantia: Make aq_ndev_driver_name static
authorYueHaibing <yuehaibing@huawei.com>
Sat, 4 May 2019 09:57:55 +0000 (17:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 May 2019 17:48:45 +0000 (10:48 -0700)
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_main.c

index 7f45e9908582040de4a800d0447eee9bac10e40b..1ea8b77fc1a719f0e4421aa5b4e8f748298ef8fa 100644 (file)
@@ -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;