Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stephen hemminger and committed by
David S. Miller
d2a7f269 6da7c8fc

+5 -4
+2 -2
include/net/sch_generic.h
··· 370 370 void qdisc_destroy(struct Qdisc *qdisc); 371 371 void qdisc_tree_decrease_qlen(struct Qdisc *qdisc, unsigned int n); 372 372 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, 373 - struct Qdisc_ops *ops); 373 + const struct Qdisc_ops *ops); 374 374 struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue, 375 - struct Qdisc_ops *ops, u32 parentid); 375 + const struct Qdisc_ops *ops, u32 parentid); 376 376 void __qdisc_calculate_pkt_len(struct sk_buff *skb, 377 377 const struct qdisc_size_table *stab); 378 378 void tcf_destroy(struct tcf_proto *tp);
+3 -2
net/sched/sch_generic.c
··· 534 534 static struct lock_class_key qdisc_tx_busylock; 535 535 536 536 struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, 537 - struct Qdisc_ops *ops) 537 + const struct Qdisc_ops *ops) 538 538 { 539 539 void *p; 540 540 struct Qdisc *sch; ··· 578 578 } 579 579 580 580 struct 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 584 struct Qdisc *sch; 584 585