DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[net-2.6 PATCH] ixgbe: fix compile warning without DCB

From: Jeff Kirsher <hidden>
Date: 2009-11-20 07:08:09
Subsystem: networking drivers, the rest · Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

When DCB is disabled, gcc warns about an unused varaible.  Fixed by making
the variable only available when DCB is enabled.

Signed-off-by: Jeff Kirsher <redacted>
Acked-by: Peter P Waskiewicz Jr <redacted>
---

 drivers/net/ixgbe/ixgbe_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index a5036f7..7cc6e93 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -240,7 +240,9 @@ static void ixgbe_unmap_and_free_tx_resource(struct ixgbe_adapter *adapter,
 static inline bool ixgbe_tx_is_paused(struct ixgbe_adapter *adapter,
                                       struct ixgbe_ring *tx_ring)
 {
+#ifdef CONFIG_IXGBE_DCB
 	int tc;
+#endif
 	u32 txoff = IXGBE_TFCS_TXOFF;
 
 #ifdef CONFIG_IXGBE_DCB
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help