Messages in this thread Patch in this message | | | From | Rusty Russell <> | Subject | [PATCH] Warning cleanup for sch_cbq.c [test3-7] | Date | Tue, 11 Jul 2000 17:23:24 +1000 |
| |
Hi Alexey,
This fixes the `unused variable' warning in sch_cbq.c when !CONFIG_NET_CLS_POLICE.
Thanks, Rusty. --- working-2.4.0-test3-7/net/sched/sch_cbq.c.~1~ Sun Feb 27 19:26:34 2000 +++ working-2.4.0-test3-7/net/sched/sch_cbq.c Tue Jul 11 17:21:54 2000 @@ -1751,11 +1751,12 @@ static void cbq_put(struct Qdisc *sch, unsigned long arg) { - struct cbq_sched_data *q = (struct cbq_sched_data *)sch->data; struct cbq_class *cl = (struct cbq_class*)arg; if (--cl->refcnt == 0) { #ifdef CONFIG_NET_CLS_POLICE + struct cbq_sched_data *q = (struct cbq_sched_data *)sch->data; + spin_lock_bh(&sch->dev->queue_lock); if (q->rx_class == cl) q->rx_class = NULL; -- Hacking time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |