Skip to content

Commit

Permalink
net: gianfar: mark the local functions static
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kevin Hao authored and David S. Miller committed Dec 30, 2014
1 parent 41f2f12 commit 91c53f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/net/ethernet/freescale/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev);
static void gfar_reset_task(struct work_struct *work);
static void gfar_timeout(struct net_device *dev);
static int gfar_close(struct net_device *dev);
struct sk_buff *gfar_new_skb(struct net_device *dev, dma_addr_t *bufaddr);
static struct sk_buff *gfar_new_skb(struct net_device *dev,
dma_addr_t *bufaddr);
static int gfar_set_mac_address(struct net_device *dev);
static int gfar_change_mtu(struct net_device *dev, int new_mtu);
static irqreturn_t gfar_error(int irq, void *dev_id);
Expand Down Expand Up @@ -554,15 +555,15 @@ static void gfar_ints_enable(struct gfar_private *priv)
}
}

void lock_tx_qs(struct gfar_private *priv)
static void lock_tx_qs(struct gfar_private *priv)
{
int i;

for (i = 0; i < priv->num_tx_queues; i++)
spin_lock(&priv->tx_queue[i]->txlock);
}

void unlock_tx_qs(struct gfar_private *priv)
static void unlock_tx_qs(struct gfar_private *priv)
{
int i;

Expand Down Expand Up @@ -2671,7 +2672,7 @@ static struct sk_buff *gfar_alloc_skb(struct net_device *dev)
return skb;
}

struct sk_buff *gfar_new_skb(struct net_device *dev, dma_addr_t *bufaddr)
static struct sk_buff *gfar_new_skb(struct net_device *dev, dma_addr_t *bufaddr)
{
struct gfar_private *priv = netdev_priv(dev);
struct sk_buff *skb;
Expand Down

0 comments on commit 91c53f7

Please sign in to comment.