diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-02-23 09:06:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 14:11:32 -0800 |
commit | ea18fd950e3210ec6d616e2e669550dd86f74d94 (patch) | |
tree | a5e348053de016d3474aefa01a04018a79607ab8 /net | |
parent | ada440e3b5c3c155c2a4d73c433b3462086dbb4a (diff) | |
download | linux-3.10-ea18fd950e3210ec6d616e2e669550dd86f74d94.tar.gz linux-3.10-ea18fd950e3210ec6d616e2e669550dd86f74d94.tar.bz2 linux-3.10-ea18fd950e3210ec6d616e2e669550dd86f74d94.zip |
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')
-rw-r--r-- | net/sched/sch_mqprio.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c index ace37f9f1cd..ea17cbed29e 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, } 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); @@ -389,7 +391,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = { .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, .id = "mqprio", .priv_size = sizeof(struct mqprio_sched), |