diff options
author | Tom Rix <trix@redhat.com> | 2022-04-03 16:02:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-04 13:47:54 +0200 |
commit | 2baed4f9b085724a8a34add832d4763f3d83f877 (patch) | |
tree | 8bb3521a8ec85dd086a3bf0e5ae708e71b1ae8bf | |
parent | Merge branch 'bnxt_en-fixes' (diff) | |
download | linux-2baed4f9b085724a8a34add832d4763f3d83f877.tar.xz linux-2baed4f9b085724a8a34add832d4763f3d83f877.zip |
stmmac: dwmac-loongson: change loongson_dwmac_driver from global to static
Smatch reports this issue
dwmac-loongson.c:208:19: warning: symbol
'loongson_dwmac_driver' was not declared.
Should it be static?
loongson_dwmac_driver is only used in dwmac-loongson.c.
File scope variables used only in one file should
be static. Change loongson_dwmac_driver's
storage-class-specifier from global to static.
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c index ecf759ee1c9f..017dbbda0c1c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c @@ -205,7 +205,7 @@ static const struct pci_device_id loongson_dwmac_id_table[] = { }; MODULE_DEVICE_TABLE(pci, loongson_dwmac_id_table); -struct pci_driver loongson_dwmac_driver = { +static struct pci_driver loongson_dwmac_driver = { .name = "dwmac-loongson-pci", .id_table = loongson_dwmac_id_table, .probe = loongson_dwmac_probe, |