[PATCH 11/12] NET: fix subqueue bugs

From: Jeff Garzik
Date: Tue Oct 23 2007 - 18:40:32 EST


net/sched/sch_prio.c: In function â??prio_dequeueâ??:
net/sched/sch_prio.c:139: warning: passing argument 2 of â??netif_subqueue_stoppedâ?? makes pointer from integer without a cast
net/sched/sch_prio.c: In function â??rr_dequeueâ??:
net/sched/sch_prio.c:169: warning: passing argument 2 of â??netif_subqueue_stoppedâ?? makes pointer from integer without a cast

Signed-off-by: Jeff Garzik <jgarzik@xxxxxxxxxx>
---

diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c
index abd82fc..de89409 100644
--- a/net/sched/sch_prio.c
+++ b/net/sched/sch_prio.c
@@ -136,7 +136,7 @@ prio_dequeue(struct Qdisc* sch)
* pulling an skb. This way we avoid excessive requeues
* for slower queues.
*/
- if (!netif_subqueue_stopped(sch->dev, (q->mq ? prio : 0))) {
+ if (!__netif_subqueue_stopped(sch->dev, (q->mq ? prio : 0))) {
qdisc = q->queues[prio];
skb = qdisc->dequeue(qdisc);
if (skb) {
@@ -165,7 +165,7 @@ static struct sk_buff *rr_dequeue(struct Qdisc* sch)
* for slower queues. If the queue is stopped, try the
* next queue.
*/
- if (!netif_subqueue_stopped(sch->dev,
+ if (!__netif_subqueue_stopped(sch->dev,
(q->mq ? q->curband : 0))) {
qdisc = q->queues[q->curband];
skb = qdisc->dequeue(qdisc);
-
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/