mirror of
https://bitbucket.org/padavan/rt-n56u.git
synced 2025-12-18 03:04:51 +08:00
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>
This commit is contained in:
committed by
andy.padavan
parent
f5e6f6407d
commit
12783dd03d
@@ -367,9 +367,9 @@ extern void qdisc_reset(struct Qdisc *qdisc);
|
||||
extern void qdisc_destroy(struct Qdisc *qdisc);
|
||||
extern void qdisc_tree_decrease_qlen(struct Qdisc *qdisc, unsigned int n);
|
||||
extern struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue,
|
||||
struct Qdisc_ops *ops);
|
||||
const struct Qdisc_ops *ops);
|
||||
extern struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
|
||||
struct Qdisc_ops *ops, u32 parentid);
|
||||
const struct Qdisc_ops *ops, u32 parentid);
|
||||
extern void __qdisc_calculate_pkt_len(struct sk_buff *skb,
|
||||
const struct qdisc_size_table *stab);
|
||||
extern void tcf_destroy(struct tcf_proto *tp);
|
||||
|
||||
@@ -528,7 +528,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;
|
||||
@@ -572,7 +572,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user