[PATCH] net, sch_generic.c : Fix unused variable warning.

From: Rakib Mullick
Date: Wed Oct 20 2010 - 07:01:41 EST


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@xxxxxxxxx>
---

--- 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/