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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=re9k9CeCNM-omzEBJy1c4RFQ1dsJQZ-hdaxuD@mail.gmail.com>
Date:	Wed, 20 Oct 2010 17:01:32 +0600
From:	Rakib Mullick <rakib.mullick@...il.com>
To:	"David S. Miller" <davem@...emloft.net>
Cc:	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] net, sch_generic.c : Fix unused variable warning.

 Fixes the following warning. Althrough the warning looks bogus.

net/sched/sch_generic.c: In function ‘dev_watchdog’:
net/sched/sch_generic.c:256: warning: unused variable ‘drivername’


Signed-off-by: Rakib Mullick <rakib.mullick@...il.com>
---

--- linus-rc8/net/sched/sch_generic.c	2010-10-20 16:44:10.000000000 +0600
+++ rakib-rc8/net/sched/sch_generic.c	2010-10-20 16:44:51.000000000 +0600
@@ -253,7 +253,7 @@ static void dev_watchdog(unsigned long a
 			}

 			if (some_queue_timedout) {
-				char drivername[64];
+				char drivername[64] __maybe_unused;
 				WARN_ONCE(1, KERN_INFO "NETDEV WATCHDOG: %s (%s): transmit queue
%u timed out\n",
 				       dev->name, netdev_drivername(dev, drivername, 64), i);
 				dev->netdev_ops->ndo_tx_timeout(dev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ