net: alx: make alx_drv_name static
Subsystems (3)
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.
Signed-off-by Rasmus Villemoes <[email protected]>
--- 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
@@ -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
@@ -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
From: Rasmus Villemoes <[email protected]>
Date: Mon, 5 Nov 2018 18:52:21 +0100
Quoted 4 lines
alx_drv_nameis not used outsidemain.c, so there's no reason for it to have external linkage.Signed-off-by Rasmus Villemoes <[email protected]>
Applied.