qdisc: make args to qdisc_create_default const
authorstephen hemminger <stephen@networkplumber.org>
Sat, 31 Aug 2013 17:15:50 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2013 22:09:45 +0000 (18:09 -0400)
Fixes warnings introduced by the qdisc default patch.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_generic.c

index 2e31bf14df0080891af98044dad71e84ff432aeb..f4eb365f7dcdadbab70e60940c519e3f83ea3253 100644 (file)
@@ -370,9 +370,9 @@ void qdisc_reset(struct Qdisc *qdisc);
 void qdisc_destroy(struct Qdisc *qdisc);
 void qdisc_tree_decrease_qlen(struct Qdisc *qdisc, unsigned int n);
 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
-                         struct Qdisc_ops *ops);
+                         const struct Qdisc_ops *ops);
 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
-                               struct Qdisc_ops *ops, u32 parentid);
+                               const struct Qdisc_ops *ops, u32 parentid);
 void __qdisc_calculate_pkt_len(struct sk_buff *skb,
                               const struct qdisc_size_table *stab);
 void tcf_destroy(struct tcf_proto *tp);
index 5078e0c5db8ddb5c6186e91cedcbc4ae9c05d35b..6b021106542c485cd98c63d799f7f7c3a1f2c99b 100644 (file)
@@ -534,7 +534,7 @@ struct Qdisc_ops pfifo_fast_ops __read_mostly = {
 static struct lock_class_key qdisc_tx_busylock;
 
 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
-                         struct Qdisc_ops *ops)
+                         const struct Qdisc_ops *ops)
 {
        void *p;
        struct Qdisc *sch;
@@ -578,7 +578,8 @@ errout:
 }
 
 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
-                               struct Qdisc_ops *ops, unsigned int parentid)
+                               const struct Qdisc_ops *ops,
+                               unsigned int parentid)
 {
        struct Qdisc *sch;