Browse Source

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.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Rasmus Villemoes 6 years ago
parent
commit
7131193157
2 changed files with 1 additions and 2 deletions
  1. 0 1
      drivers/net/ethernet/atheros/alx/alx.h
  2. 1 1
      drivers/net/ethernet/atheros/alx/main.c

+ 0 - 1
drivers/net/ethernet/atheros/alx/alx.h

@@ -140,6 +140,5 @@ struct alx_priv {
 };
 
 extern const struct ethtool_ops alx_ethtool_ops;
-extern const char alx_drv_name[];
 
 #endif

+ 1 - 1
drivers/net/ethernet/atheros/alx/main.c

@@ -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)
 {