aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-02-23 04:06:51 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-23 17:11:32 -0500
commitea18fd950e3210ec6d616e2e669550dd86f74d94 (patch)
treea5e348053de016d3474aefa01a04018a79607ab8 /net/sched
parentada440e3b5c3c155c2a4d73c433b3462086dbb4a (diff)
mqprio: cleanups
* make qdisc_ops local * add sparse annotation about expected unlock/unlock in dump_class_stats * fix indentation Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_mqprio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c
index ace37f9f1cd0..ea17cbed29ef 100644
--- a/net/sched/sch_mqprio.c
+++ b/net/sched/sch_mqprio.c
@@ -311,7 +311,9 @@ static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl,
311} 311}
312 312
313static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, 313static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
314 struct gnet_dump *d) 314 struct gnet_dump *d)
315 __releases(d->lock)
316 __acquires(d->lock)
315{ 317{
316 struct net_device *dev = qdisc_dev(sch); 318 struct net_device *dev = qdisc_dev(sch);
317 319
@@ -389,7 +391,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = {
389 .dump_stats = mqprio_dump_class_stats, 391 .dump_stats = mqprio_dump_class_stats,
390}; 392};
391 393
392struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { 394static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {
393 .cl_ops = &mqprio_class_ops, 395 .cl_ops = &mqprio_class_ops,
394 .id = "mqprio", 396 .id = "mqprio",
395 .priv_size = sizeof(struct mqprio_sched), 397 .priv_size = sizeof(struct mqprio_sched),