aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-23 01:10:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:11:07 -0500
commit62e3ba1b558e5f393ef746880613fb8222e64d03 (patch)
tree159c218ad38daef676b2cbc5a00e6b83a04cc16d /net/sched/sch_generic.c
parentf206351a50ea86250fabea96b9af8d8f8fc02603 (diff)
[NET_SCHED]: Move EXPORT_SYMBOL next to exported symbol
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index ea5a05b172c4..51e64acd5098 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -46,6 +46,7 @@ void qdisc_lock_tree(struct net_device *dev)
46 spin_lock_bh(&dev->queue_lock); 46 spin_lock_bh(&dev->queue_lock);
47 spin_lock(&dev->ingress_lock); 47 spin_lock(&dev->ingress_lock);
48} 48}
49EXPORT_SYMBOL(qdisc_lock_tree);
49 50
50void qdisc_unlock_tree(struct net_device *dev) 51void qdisc_unlock_tree(struct net_device *dev)
51 __releases(dev->ingress_lock) 52 __releases(dev->ingress_lock)
@@ -54,6 +55,7 @@ void qdisc_unlock_tree(struct net_device *dev)
54 spin_unlock(&dev->ingress_lock); 55 spin_unlock(&dev->ingress_lock);
55 spin_unlock_bh(&dev->queue_lock); 56 spin_unlock_bh(&dev->queue_lock);
56} 57}
58EXPORT_SYMBOL(qdisc_unlock_tree);
57 59
58static inline int qdisc_qlen(struct Qdisc *q) 60static inline int qdisc_qlen(struct Qdisc *q)
59{ 61{
@@ -253,6 +255,7 @@ void netif_carrier_on(struct net_device *dev)
253 __netdev_watchdog_up(dev); 255 __netdev_watchdog_up(dev);
254 } 256 }
255} 257}
258EXPORT_SYMBOL(netif_carrier_on);
256 259
257/** 260/**
258 * netif_carrier_off - clear carrier 261 * netif_carrier_off - clear carrier
@@ -265,6 +268,7 @@ void netif_carrier_off(struct net_device *dev)
265 if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state)) 268 if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state))
266 linkwatch_fire_event(dev); 269 linkwatch_fire_event(dev);
267} 270}
271EXPORT_SYMBOL(netif_carrier_off);
268 272
269/* "NOOP" scheduler: the best scheduler, recommended for all interfaces 273/* "NOOP" scheduler: the best scheduler, recommended for all interfaces
270 under all circumstances. It is difficult to invent anything faster or 274 under all circumstances. It is difficult to invent anything faster or
@@ -307,6 +311,7 @@ struct Qdisc noop_qdisc = {
307 .ops = &noop_qdisc_ops, 311 .ops = &noop_qdisc_ops,
308 .list = LIST_HEAD_INIT(noop_qdisc.list), 312 .list = LIST_HEAD_INIT(noop_qdisc.list),
309}; 313};
314EXPORT_SYMBOL(noop_qdisc);
310 315
311static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = { 316static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = {
312 .id = "noqueue", 317 .id = "noqueue",
@@ -471,6 +476,7 @@ struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops,
471errout: 476errout:
472 return NULL; 477 return NULL;
473} 478}
479EXPORT_SYMBOL(qdisc_create_dflt);
474 480
475/* Under dev->queue_lock and BH! */ 481/* Under dev->queue_lock and BH! */
476 482
@@ -481,6 +487,7 @@ void qdisc_reset(struct Qdisc *qdisc)
481 if (ops->reset) 487 if (ops->reset)
482 ops->reset(qdisc); 488 ops->reset(qdisc);
483} 489}
490EXPORT_SYMBOL(qdisc_reset);
484 491
485/* this is the rcu callback function to clean up a qdisc when there 492/* this is the rcu callback function to clean up a qdisc when there
486 * are no further references to it */ 493 * are no further references to it */
@@ -512,6 +519,7 @@ void qdisc_destroy(struct Qdisc *qdisc)
512 dev_put(qdisc->dev); 519 dev_put(qdisc->dev);
513 call_rcu(&qdisc->q_rcu, __qdisc_destroy); 520 call_rcu(&qdisc->q_rcu, __qdisc_destroy);
514} 521}
522EXPORT_SYMBOL(qdisc_destroy);
515 523
516void dev_activate(struct net_device *dev) 524void dev_activate(struct net_device *dev)
517{ 525{
@@ -626,12 +634,3 @@ void dev_shutdown(struct net_device *dev)
626 BUG_TRAP(!timer_pending(&dev->watchdog_timer)); 634 BUG_TRAP(!timer_pending(&dev->watchdog_timer));
627 qdisc_unlock_tree(dev); 635 qdisc_unlock_tree(dev);
628} 636}
629
630EXPORT_SYMBOL(netif_carrier_on);
631EXPORT_SYMBOL(netif_carrier_off);
632EXPORT_SYMBOL(noop_qdisc);
633EXPORT_SYMBOL(qdisc_create_dflt);
634EXPORT_SYMBOL(qdisc_destroy);
635EXPORT_SYMBOL(qdisc_reset);
636EXPORT_SYMBOL(qdisc_lock_tree);
637EXPORT_SYMBOL(qdisc_unlock_tree);