Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
ea18fd95 ada440e3

+4 -2
+4 -2
net/sched/sch_mqprio.c
··· 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 ··· 391 389 .dump_stats = mqprio_dump_class_stats, 392 390 }; 393 391 394 - struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { 392 + static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { 395 393 .cl_ops = &mqprio_class_ops, 396 394 .id = "mqprio", 397 395 .priv_size = sizeof(struct mqprio_sched),