diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-20 21:13:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-20 21:13:01 -0400 |
commit | 3a682fbd732d3d27bec722a923952b0938e8a404 (patch) | |
tree | 715ca6472e7c3d9b354cb8bfa18db74dabcdaeff /net/sched/sch_generic.c | |
parent | fb65a7c091529bfffb1262515252c0d0f6241c5c (diff) |
pkt_sched: Fix build with NET_SCHED disabled.
The stab bits can't be referenced uniless the full
packet scheduler layer is enabled.
Reported by Stephen Rothwell.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 27a51f04db49..0ddf69286f92 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -469,7 +469,9 @@ static void __qdisc_destroy(struct rcu_head *head) | |||
469 | struct Qdisc *qdisc = container_of(head, struct Qdisc, q_rcu); | 469 | struct Qdisc *qdisc = container_of(head, struct Qdisc, q_rcu); |
470 | const struct Qdisc_ops *ops = qdisc->ops; | 470 | const struct Qdisc_ops *ops = qdisc->ops; |
471 | 471 | ||
472 | #ifdef CONFIG_NET_SCHED | ||
472 | qdisc_put_stab(qdisc->stab); | 473 | qdisc_put_stab(qdisc->stab); |
474 | #endif | ||
473 | gen_kill_estimator(&qdisc->bstats, &qdisc->rate_est); | 475 | gen_kill_estimator(&qdisc->bstats, &qdisc->rate_est); |
474 | if (ops->reset) | 476 | if (ops->reset) |
475 | ops->reset(qdisc); | 477 | ops->reset(qdisc); |