Skip to content

Commit 440b87e

Browse files
Paul Gortmakerdavem330
authored andcommitted
drivers/net: fix build warning in ethernet/sfc/tx.c
Commit ee45fd9 ("sfc: Use TX PIO for sufficiently small packets") introduced the following warning: drivers/net/ethernet/sfc/tx.c: In function 'efx_enqueue_skb': drivers/net/ethernet/sfc/tx.c:432:1: warning: label 'finish_packet' defined but not used Stick the label inside the same #ifdef that the code which calls it uses. Note that this is only seen for arch that do not set ARCH_HAS_IOREMAP_WC, such as arm, mips, sparc, ..., as the others enable the write combining code and hence use the label. Cc: Jon Cooper <jcooper@solarflare.com> Cc: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4ccd0bb commit 440b87e

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+2
-0
lines changed

drivers/net/ethernet/sfc/tx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ netdev_tx_t efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb)
429429
}
430430

431431
/* Transfer ownership of the skb to the final buffer */
432+
#ifdef EFX_USE_PIO
432433
finish_packet:
434+
#endif
433435
buffer->skb = skb;
434436
buffer->flags = EFX_TX_BUF_SKB | dma_flags;
435437

0 commit comments

Comments
 (0)