Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47d1f71f authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

stmicro: make local variables static



Make variables only used in one file static. Also avoids possible
namespace collisions.

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e769788
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -108,8 +108,6 @@ struct stmmac_priv {
	spinlock_t ptp_lock;
	spinlock_t ptp_lock;
};
};


extern int phyaddr;

int stmmac_mdio_unregister(struct net_device *ndev);
int stmmac_mdio_unregister(struct net_device *ndev);
int stmmac_mdio_register(struct net_device *ndev);
int stmmac_mdio_register(struct net_device *ndev);
void stmmac_set_ethtool_ops(struct net_device *netdev);
void stmmac_set_ethtool_ops(struct net_device *netdev);
+1 −1
Original line number Original line Diff line number Diff line
@@ -64,7 +64,7 @@ static int debug = -1;
module_param(debug, int, S_IRUGO | S_IWUSR);
module_param(debug, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");
MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)");


int phyaddr = -1;
static int phyaddr = -1;
module_param(phyaddr, int, S_IRUGO);
module_param(phyaddr, int, S_IRUGO);
MODULE_PARM_DESC(phyaddr, "Physical device address");
MODULE_PARM_DESC(phyaddr, "Physical device address");


+3 −3
Original line number Original line Diff line number Diff line
@@ -26,9 +26,9 @@
#include <linux/pci.h>
#include <linux/pci.h>
#include "stmmac.h"
#include "stmmac.h"


struct plat_stmmacenet_data plat_dat;
static struct plat_stmmacenet_data plat_dat;
struct stmmac_mdio_bus_data mdio_data;
static struct stmmac_mdio_bus_data mdio_data;
struct stmmac_dma_cfg dma_cfg;
static struct stmmac_dma_cfg dma_cfg;


static void stmmac_default_data(void)
static void stmmac_default_data(void)
{
{