Skip to content

Commit 7131193

Browse files
Villemoesdavem330
authored andcommitted
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>
1 parent 97adadd commit 7131193

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/net/ethernet/atheros/alx/alx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,5 @@ struct alx_priv {
140140
};
141141

142142
extern const struct ethtool_ops alx_ethtool_ops;
143-
extern const char alx_drv_name[];
144143

145144
#endif

drivers/net/ethernet/atheros/alx/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include "hw.h"
5050
#include "reg.h"
5151

52-
const char alx_drv_name[] = "alx";
52+
static const char alx_drv_name[] = "alx";
5353

5454
static void alx_free_txbuf(struct alx_tx_queue *txq, int entry)
5555
{

0 commit comments

Comments
 (0)