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

mail settings
Submitter Jeff Kirsher
Date Nov. 20, 2009, 7:07 a.m.
Message ID <20091120070745.30460.28687.stgit@localhost.localdomain>
Download mbox | patch
Permalink /patch/38899/
State Superseded
Delegated to: David Miller
Headers show


Jeff Kirsher - Nov. 20, 2009, 7:07 a.m.
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 <>
Acked-by: Peter P Waskiewicz Jr <>

 drivers/net/ixgbe/ixgbe_main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at


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)
 	int tc;
 	u32 txoff = IXGBE_TFCS_TXOFF;