]> err.no Git - linux-2.6/blobdiff - net/sched/sch_htb.c
[NET]: Move Qdisc_class_ops and Qdisc_ops in appropriate sections.
[linux-2.6] / net / sched / sch_htb.c
index 5e608a64935af6b644c6ecf3596f7dd84c32d35a..72beb66cec9c2ad1a6e95f05f97c612972f7a6bc 100644 (file)
@@ -1529,7 +1529,7 @@ static void htb_walk(struct Qdisc *sch, struct qdisc_walker *arg)
        }
 }
 
-static struct Qdisc_class_ops htb_class_ops = {
+static const struct Qdisc_class_ops htb_class_ops = {
        .graft          =       htb_graft,
        .leaf           =       htb_leaf,
        .qlen_notify    =       htb_qlen_notify,
@@ -1545,7 +1545,7 @@ static struct Qdisc_class_ops htb_class_ops = {
        .dump_stats     =       htb_dump_class_stats,
 };
 
-static struct Qdisc_ops htb_qdisc_ops = {
+static struct Qdisc_ops htb_qdisc_ops __read_mostly = {
        .next           =       NULL,
        .cl_ops         =       &htb_class_ops,
        .id             =       "htb",