lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 19 Nov 2009 23:07:58 -0800 From: Jeff Kirsher <jeffrey.t.kirsher@...el.com> To: davem@...emloft.net Cc: netdev@...r.kernel.org, gospo@...hat.com, Jeff Kirsher <jeffrey.t.kirsher@...el.com>, Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com> Subject: [net-2.6 PATCH] ixgbe: fix compile warning without DCB 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 <jeffrey.t.kirsher@...el.com> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@...el.com> --- 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 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists