提交 ea18fd95 编写于 作者: S stephen hemminger 提交者: David S. Miller

mqprio: cleanups

* make qdisc_ops local
* add sparse annotation about expected unlock/unlock in dump_class_stats
* fix indentation
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ada440e3
...@@ -311,7 +311,9 @@ static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl, ...@@ -311,7 +311,9 @@ static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl,
} }
static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl, static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
struct gnet_dump *d) struct gnet_dump *d)
__releases(d->lock)
__acquires(d->lock)
{ {
struct net_device *dev = qdisc_dev(sch); struct net_device *dev = qdisc_dev(sch);
...@@ -389,7 +391,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = { ...@@ -389,7 +391,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = {
.dump_stats = mqprio_dump_class_stats, .dump_stats = mqprio_dump_class_stats,
}; };
struct Qdisc_ops mqprio_qdisc_ops __read_mostly = { static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {
.cl_ops = &mqprio_class_ops, .cl_ops = &mqprio_class_ops,
.id = "mqprio", .id = "mqprio",
.priv_size = sizeof(struct mqprio_sched), .priv_size = sizeof(struct mqprio_sched),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册