diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-07-09 17:22:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-12 15:57:55 -0400 |
commit | 9e34a5b51684bc90ac827ec4ba339f3892632eac (patch) | |
tree | 69cf791f15f9aedb2e7a40e473295f803ddd814a /net/core/netpoll.c | |
parent | 4bc2f18ba4f22a90ab593c0a580fc9a19c4777b6 (diff) |
net/core: EXPORT_SYMBOL cleanups
CodingStyle cleanups
EXPORT_SYMBOL should immediately follow the symbol declaration.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index ca6dc31843ea..c2b7a8bed8f6 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -197,11 +197,13 @@ void netpoll_poll_dev(struct net_device *dev) | |||
197 | service_arp_queue(dev->npinfo); | 197 | service_arp_queue(dev->npinfo); |
198 | 198 | ||
199 | } | 199 | } |
200 | EXPORT_SYMBOL(netpoll_poll_dev); | ||
200 | 201 | ||
201 | void netpoll_poll(struct netpoll *np) | 202 | void netpoll_poll(struct netpoll *np) |
202 | { | 203 | { |
203 | netpoll_poll_dev(np->dev); | 204 | netpoll_poll_dev(np->dev); |
204 | } | 205 | } |
206 | EXPORT_SYMBOL(netpoll_poll); | ||
205 | 207 | ||
206 | static void refill_skbs(void) | 208 | static void refill_skbs(void) |
207 | { | 209 | { |
@@ -313,6 +315,7 @@ void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) | |||
313 | schedule_delayed_work(&npinfo->tx_work,0); | 315 | schedule_delayed_work(&npinfo->tx_work,0); |
314 | } | 316 | } |
315 | } | 317 | } |
318 | EXPORT_SYMBOL(netpoll_send_skb); | ||
316 | 319 | ||
317 | void netpoll_send_udp(struct netpoll *np, const char *msg, int len) | 320 | void netpoll_send_udp(struct netpoll *np, const char *msg, int len) |
318 | { | 321 | { |
@@ -374,6 +377,7 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len) | |||
374 | 377 | ||
375 | netpoll_send_skb(np, skb); | 378 | netpoll_send_skb(np, skb); |
376 | } | 379 | } |
380 | EXPORT_SYMBOL(netpoll_send_udp); | ||
377 | 381 | ||
378 | static void arp_reply(struct sk_buff *skb) | 382 | static void arp_reply(struct sk_buff *skb) |
379 | { | 383 | { |
@@ -600,6 +604,7 @@ void netpoll_print_options(struct netpoll *np) | |||
600 | printk(KERN_INFO "%s: remote ethernet address %pM\n", | 604 | printk(KERN_INFO "%s: remote ethernet address %pM\n", |
601 | np->name, np->remote_mac); | 605 | np->name, np->remote_mac); |
602 | } | 606 | } |
607 | EXPORT_SYMBOL(netpoll_print_options); | ||
603 | 608 | ||
604 | int netpoll_parse_options(struct netpoll *np, char *opt) | 609 | int netpoll_parse_options(struct netpoll *np, char *opt) |
605 | { | 610 | { |
@@ -692,6 +697,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) | |||
692 | np->name, cur); | 697 | np->name, cur); |
693 | return -1; | 698 | return -1; |
694 | } | 699 | } |
700 | EXPORT_SYMBOL(netpoll_parse_options); | ||
695 | 701 | ||
696 | int __netpoll_setup(struct netpoll *np) | 702 | int __netpoll_setup(struct netpoll *np) |
697 | { | 703 | { |
@@ -848,6 +854,7 @@ put: | |||
848 | dev_put(ndev); | 854 | dev_put(ndev); |
849 | return err; | 855 | return err; |
850 | } | 856 | } |
857 | EXPORT_SYMBOL(netpoll_setup); | ||
851 | 858 | ||
852 | static int __init netpoll_init(void) | 859 | static int __init netpoll_init(void) |
853 | { | 860 | { |
@@ -908,11 +915,13 @@ void netpoll_cleanup(struct netpoll *np) | |||
908 | dev_put(np->dev); | 915 | dev_put(np->dev); |
909 | np->dev = NULL; | 916 | np->dev = NULL; |
910 | } | 917 | } |
918 | EXPORT_SYMBOL(netpoll_cleanup); | ||
911 | 919 | ||
912 | int netpoll_trap(void) | 920 | int netpoll_trap(void) |
913 | { | 921 | { |
914 | return atomic_read(&trapped); | 922 | return atomic_read(&trapped); |
915 | } | 923 | } |
924 | EXPORT_SYMBOL(netpoll_trap); | ||
916 | 925 | ||
917 | void netpoll_set_trap(int trap) | 926 | void netpoll_set_trap(int trap) |
918 | { | 927 | { |
@@ -921,14 +930,4 @@ void netpoll_set_trap(int trap) | |||
921 | else | 930 | else |
922 | atomic_dec(&trapped); | 931 | atomic_dec(&trapped); |
923 | } | 932 | } |
924 | |||
925 | EXPORT_SYMBOL(netpoll_send_skb); | ||
926 | EXPORT_SYMBOL(netpoll_set_trap); | 933 | EXPORT_SYMBOL(netpoll_set_trap); |
927 | EXPORT_SYMBOL(netpoll_trap); | ||
928 | EXPORT_SYMBOL(netpoll_print_options); | ||
929 | EXPORT_SYMBOL(netpoll_parse_options); | ||
930 | EXPORT_SYMBOL(netpoll_setup); | ||
931 | EXPORT_SYMBOL(netpoll_cleanup); | ||
932 | EXPORT_SYMBOL(netpoll_send_udp); | ||
933 | EXPORT_SYMBOL(netpoll_poll_dev); | ||
934 | EXPORT_SYMBOL(netpoll_poll); | ||