aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-08-31 13:15:50 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-31 18:09:45 -0400
commitd2a7f269f91299b8e5f6c7d2a41ba46248d73d24 (patch)
tree91016a49e4e244f1f13ec067f816e6166801b70f /net/sched/sch_generic.c
parent6da7c8fcbcbdb50ec68c61b40d554c74850fdb91 (diff)
qdisc: make args to qdisc_create_default const
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>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 5078e0c5db8d..6b021106542c 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -534,7 +534,7 @@ struct Qdisc_ops pfifo_fast_ops __read_mostly = {
534static struct lock_class_key qdisc_tx_busylock; 534static struct lock_class_key qdisc_tx_busylock;
535 535
536struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, 536struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
537 struct Qdisc_ops *ops) 537 const struct Qdisc_ops *ops)
538{ 538{
539 void *p; 539 void *p;
540 struct Qdisc *sch; 540 struct Qdisc *sch;
@@ -578,7 +578,8 @@ errout:
578} 578}
579 579
580struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue, 580struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
581 struct Qdisc_ops *ops, unsigned int parentid) 581 const struct Qdisc_ops *ops,
582 unsigned int parentid)
582{ 583{
583 struct Qdisc *sch; 584 struct Qdisc *sch;
584 585