Skip to content

Commit

Permalink
gianfar: Fix warning when CONFIG_PM off
Browse files Browse the repository at this point in the history
CC      drivers/net/ethernet/freescale/gianfar.o
drivers/net/ethernet/freescale/gianfar.c:568:13: warning: 'lock_tx_qs'
defined but not used [-Wunused-function]
 static void lock_tx_qs(struct gfar_private *priv)
             ^
drivers/net/ethernet/freescale/gianfar.c:576:13: warning: 'unlock_tx_qs'
defined but not used [-Wunused-function]
 static void unlock_tx_qs(struct gfar_private *priv)
             ^

Reported-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Claudiu Manoil authored and David S. Miller committed Jul 31, 2015
1 parent 5175f71 commit 8486830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/freescale/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ static void gfar_ints_enable(struct gfar_private *priv)
}
}

#ifdef CONFIG_PM
static void lock_tx_qs(struct gfar_private *priv)
{
int i;
Expand All @@ -580,6 +581,7 @@ static void unlock_tx_qs(struct gfar_private *priv)
for (i = 0; i < priv->num_tx_queues; i++)
spin_unlock(&priv->tx_queue[i]->txlock);
}
#endif

static int gfar_alloc_tx_queues(struct gfar_private *priv)
{
Expand Down

0 comments on commit 8486830

Please sign in to comment.