]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-loongson: change loongson_dwmac_driver from global to static
authorTom Rix <trix@redhat.com>
Sun, 3 Apr 2022 14:02:02 +0000 (10:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Apr 2022 11:47:54 +0000 (12:47 +0100)
commit3a4c7346477fc9efd7c0dfecc89eb25e51cc5820
tree8bb3521a8ec85dd086a3bf0e5ae708e71b1ae8bf
parent4884627fe709a8a92338099e1fdc89b6cf80c85b
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c