diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-04 12:57:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-05 20:48:45 +0300 |
commit | 44bec4b3bd71a169f967cae8d5ad503e60f0a165 (patch) | |
tree | e676c8129e7b390d4d8c31ff3a3f2643bfe4bf7f /drivers/net/ethernet/aquantia | |
parent | 69bbbdc5e1aa0f8e9e5cbc510479cae6dd030621 (diff) | |
download | linux-44bec4b3bd71a169f967cae8d5ad503e60f0a165.tar.xz |
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |