Skip to contentSkip to conversation

net: alx: make alx_drv_name static

PATCH Applied Rasmus Villemoes 2 participants 2 messages Nov 5, 2018 – Nov 6, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: alx: make alx_drv_name static

alx_drv_name is not used outside main.c, so there's no reason for it to have external linkage.

---
 drivers/net/ethernet/atheros/alx/alx.h  | 1 -
 drivers/net/ethernet/atheros/alx/main.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/atheros/alx/alx.h +0 -1
index 78c5de467426..9d0e74f6b089 100644
@@ -140,6 +140,5 @@ struct alx_priv {
 };
 
 extern const struct ethtool_ops alx_ethtool_ops;
-extern const char alx_drv_name[];
 
 #endif
drivers/net/ethernet/atheros/alx/main.c +1 -1
index 7968c644ad86..c131cfc1b79d 100644
@@ -49,7 +49,7 @@
 #include "hw.h"
 #include "reg.h"
 
-const char alx_drv_name[] = "alx";
+static const char alx_drv_name[] = "alx";
 
 static void alx_free_txbuf(struct alx_tx_queue *txq, int entry)
 {
Signature · 1 line
2.19.1.6.gbde171bbf5