Commit ea18fd950e3210ec6d616e2e669550dd86f74d94
Committed by
David S. Miller
1 parent
ada440e3b5
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
net/sched/sch_mqprio.c
... | ... | @@ -311,7 +311,9 @@ |
311 | 311 | } |
312 | 312 | |
313 | 313 | static 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 | 318 | struct net_device *dev = qdisc_dev(sch); |
317 | 319 | |
... | ... | @@ -389,7 +391,7 @@ |
389 | 391 | .dump_stats = mqprio_dump_class_stats, |
390 | 392 | }; |
391 | 393 | |
392 | -struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { | |
394 | +static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { | |
393 | 395 | .cl_ops = &mqprio_class_ops, |
394 | 396 | .id = "mqprio", |
395 | 397 | .priv_size = sizeof(struct mqprio_sched), |