]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net: fix build warning in ethernet/sfc/tx.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Feb 2014 16:45:12 +0000 (11:45 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2014 05:28:05 +0000 (21:28 -0800)
commitd405eccd3d0d83312254db2b8d9de07950b38991
tree07b67f879b9f11356dcf60cf4a8b89d90c971eb1
parent9178f92f969ea8f537107a9603435d8d2ce80242
drivers/net: fix build warning in ethernet/sfc/tx.c

Commit f10634c1de2373700f433562ebd5d69693320b59 ("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>
drivers/net/ethernet/sfc/tx.c