aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/pkt_sched.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-07-31 01:47:13 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-31 20:24:22 -0400
commit5c15257f93234aaa9775291a041b49eeb38fd95a (patch)
treeca42e94710f78cf542b141f1b20693144e51feac /include/net/pkt_sched.h
parentc34a761231b56dea4bd205cb9c29ffe37475d232 (diff)
net: Remove extern from include/net/ scheduling prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Reflow modified prototypes to 80 columns. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r--include/net/pkt_sched.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 388bf8b6d060..f7c24f8fbdc5 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -64,8 +64,8 @@ struct qdisc_watchdog {
64 struct Qdisc *qdisc; 64 struct Qdisc *qdisc;
65}; 65};
66 66
67extern void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); 67void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc);
68extern void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires); 68void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires);
69 69
70static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, 70static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd,
71 psched_time_t expires) 71 psched_time_t expires)
@@ -73,31 +73,31 @@ static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd,
73 qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires)); 73 qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires));
74} 74}
75 75
76extern void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); 76void qdisc_watchdog_cancel(struct qdisc_watchdog *wd);
77 77
78extern struct Qdisc_ops pfifo_qdisc_ops; 78extern struct Qdisc_ops pfifo_qdisc_ops;
79extern struct Qdisc_ops bfifo_qdisc_ops; 79extern struct Qdisc_ops bfifo_qdisc_ops;
80extern struct Qdisc_ops pfifo_head_drop_qdisc_ops; 80extern struct Qdisc_ops pfifo_head_drop_qdisc_ops;
81 81
82extern int fifo_set_limit(struct Qdisc *q, unsigned int limit); 82int fifo_set_limit(struct Qdisc *q, unsigned int limit);
83extern struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, 83struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops,
84 unsigned int limit); 84 unsigned int limit);
85 85
86extern int register_qdisc(struct Qdisc_ops *qops); 86int register_qdisc(struct Qdisc_ops *qops);
87extern int unregister_qdisc(struct Qdisc_ops *qops); 87int unregister_qdisc(struct Qdisc_ops *qops);
88extern void qdisc_list_del(struct Qdisc *q); 88void qdisc_list_del(struct Qdisc *q);
89extern struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle); 89struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle);
90extern struct Qdisc *qdisc_lookup_class(struct net_device *dev, u32 handle); 90struct Qdisc *qdisc_lookup_class(struct net_device *dev, u32 handle);
91extern struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, 91struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r,
92 struct nlattr *tab); 92 struct nlattr *tab);
93extern void qdisc_put_rtab(struct qdisc_rate_table *tab); 93void qdisc_put_rtab(struct qdisc_rate_table *tab);
94extern void qdisc_put_stab(struct qdisc_size_table *tab); 94void qdisc_put_stab(struct qdisc_size_table *tab);
95extern void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc); 95void qdisc_warn_nonwc(char *txt, struct Qdisc *qdisc);
96extern int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q, 96int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q,
97 struct net_device *dev, struct netdev_queue *txq, 97 struct net_device *dev, struct netdev_queue *txq,
98 spinlock_t *root_lock); 98 spinlock_t *root_lock);
99 99
100extern void __qdisc_run(struct Qdisc *q); 100void __qdisc_run(struct Qdisc *q);
101 101
102static inline void qdisc_run(struct Qdisc *q) 102static inline void qdisc_run(struct Qdisc *q)
103{ 103{
@@ -105,10 +105,10 @@ static inline void qdisc_run(struct Qdisc *q)
105 __qdisc_run(q); 105 __qdisc_run(q);
106} 106}
107 107
108extern int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, 108int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp,
109 struct tcf_result *res);
110extern int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
111 struct tcf_result *res); 109 struct tcf_result *res);
110int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
111 struct tcf_result *res);
112 112
113/* Calculate maximal size of packet seen by hard_start_xmit 113/* Calculate maximal size of packet seen by hard_start_xmit
114 routine of this device. 114 routine of this device.