Commit 811eafc0 authored by Joe Perches's avatar Joe Perches Committed by Michael Grzeschik

arcnet: Move EXPORT_SYMBOL after declarations

Use the normal kernel style for EXPORT_SYMBOL.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
parent 05a24b23
...@@ -68,8 +68,17 @@ static void arcnet_rx(struct net_device *dev, int bufnum); ...@@ -68,8 +68,17 @@ static void arcnet_rx(struct net_device *dev, int bufnum);
* arc_proto_default instead. It also must not be NULL; if you would like * arc_proto_default instead. It also must not be NULL; if you would like
* to set it to NULL, set it to &arc_proto_null instead. * to set it to NULL, set it to &arc_proto_null instead.
*/ */
struct ArcProto *arc_proto_map[256], *arc_proto_default, struct ArcProto *arc_proto_map[256];
*arc_bcast_proto, *arc_raw_proto; EXPORT_SYMBOL(arc_proto_map);
struct ArcProto *arc_proto_default;
EXPORT_SYMBOL(arc_proto_default);
struct ArcProto *arc_bcast_proto;
EXPORT_SYMBOL(arc_bcast_proto);
struct ArcProto *arc_raw_proto;
EXPORT_SYMBOL(arc_raw_proto);
static struct ArcProto arc_proto_null = { static struct ArcProto arc_proto_null = {
.suffix = '?', .suffix = '?',
...@@ -84,19 +93,7 @@ static struct ArcProto arc_proto_null = { ...@@ -84,19 +93,7 @@ static struct ArcProto arc_proto_null = {
/* Exported function prototypes */ /* Exported function prototypes */
int arcnet_debug = ARCNET_DEBUG; int arcnet_debug = ARCNET_DEBUG;
EXPORT_SYMBOL(arc_proto_map);
EXPORT_SYMBOL(arc_proto_default);
EXPORT_SYMBOL(arc_bcast_proto);
EXPORT_SYMBOL(arc_raw_proto);
EXPORT_SYMBOL(arcnet_unregister_proto);
EXPORT_SYMBOL(arcnet_debug); EXPORT_SYMBOL(arcnet_debug);
EXPORT_SYMBOL(alloc_arcdev);
EXPORT_SYMBOL(arcnet_interrupt);
EXPORT_SYMBOL(arcnet_open);
EXPORT_SYMBOL(arcnet_close);
EXPORT_SYMBOL(arcnet_send_packet);
EXPORT_SYMBOL(arcnet_timeout);
/* Internal function prototypes */ /* Internal function prototypes */
static int arcnet_header(struct sk_buff *skb, struct net_device *dev, static int arcnet_header(struct sk_buff *skb, struct net_device *dev,
...@@ -151,7 +148,6 @@ void arcnet_dump_skb(struct net_device *dev, ...@@ -151,7 +148,6 @@ void arcnet_dump_skb(struct net_device *dev,
print_hex_dump(KERN_DEBUG, hdr, DUMP_PREFIX_OFFSET, print_hex_dump(KERN_DEBUG, hdr, DUMP_PREFIX_OFFSET,
16, 1, skb->data, skb->len, true); 16, 1, skb->data, skb->len, true);
} }
EXPORT_SYMBOL(arcnet_dump_skb); EXPORT_SYMBOL(arcnet_dump_skb);
#endif #endif
...@@ -211,6 +207,7 @@ void arcnet_unregister_proto(struct ArcProto *proto) ...@@ -211,6 +207,7 @@ void arcnet_unregister_proto(struct ArcProto *proto)
arc_proto_map[count] = arc_proto_default; arc_proto_map[count] = arc_proto_default;
} }
} }
EXPORT_SYMBOL(arcnet_unregister_proto);
/* Add a buffer to the queue. Only the interrupt handler is allowed to do /* Add a buffer to the queue. Only the interrupt handler is allowed to do
* this, unless interrupts are disabled. * this, unless interrupts are disabled.
...@@ -330,6 +327,7 @@ struct net_device *alloc_arcdev(const char *name) ...@@ -330,6 +327,7 @@ struct net_device *alloc_arcdev(const char *name)
return dev; return dev;
} }
EXPORT_SYMBOL(alloc_arcdev);
/* Open/initialize the board. This is called sometime after booting when /* Open/initialize the board. This is called sometime after booting when
* the 'ifconfig' program is run. * the 'ifconfig' program is run.
...@@ -431,6 +429,7 @@ int arcnet_open(struct net_device *dev) ...@@ -431,6 +429,7 @@ int arcnet_open(struct net_device *dev)
module_put(lp->hw.owner); module_put(lp->hw.owner);
return error; return error;
} }
EXPORT_SYMBOL(arcnet_open);
/* The inverse routine to arcnet_open - shuts down the card. */ /* The inverse routine to arcnet_open - shuts down the card. */
int arcnet_close(struct net_device *dev) int arcnet_close(struct net_device *dev)
...@@ -450,6 +449,7 @@ int arcnet_close(struct net_device *dev) ...@@ -450,6 +449,7 @@ int arcnet_close(struct net_device *dev)
module_put(lp->hw.owner); module_put(lp->hw.owner);
return 0; return 0;
} }
EXPORT_SYMBOL(arcnet_close);
static int arcnet_header(struct sk_buff *skb, struct net_device *dev, static int arcnet_header(struct sk_buff *skb, struct net_device *dev,
unsigned short type, const void *daddr, unsigned short type, const void *daddr,
...@@ -592,6 +592,7 @@ netdev_tx_t arcnet_send_packet(struct sk_buff *skb, ...@@ -592,6 +592,7 @@ netdev_tx_t arcnet_send_packet(struct sk_buff *skb,
return retval; /* no need to try again */ return retval; /* no need to try again */
} }
EXPORT_SYMBOL(arcnet_send_packet);
/* Actually start transmitting a packet that was loaded into a buffer /* Actually start transmitting a packet that was loaded into a buffer
* by prepare_tx. This should _only_ be called by the interrupt handler. * by prepare_tx. This should _only_ be called by the interrupt handler.
...@@ -659,6 +660,7 @@ void arcnet_timeout(struct net_device *dev) ...@@ -659,6 +660,7 @@ void arcnet_timeout(struct net_device *dev)
if (lp->cur_tx == -1) if (lp->cur_tx == -1)
netif_wake_queue(dev); netif_wake_queue(dev);
} }
EXPORT_SYMBOL(arcnet_timeout);
/* The typical workload of the driver: Handle the network interface /* The typical workload of the driver: Handle the network interface
* interrupts. Establish which device needs attention, and call the correct * interrupts. Establish which device needs attention, and call the correct
...@@ -902,6 +904,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id) ...@@ -902,6 +904,7 @@ irqreturn_t arcnet_interrupt(int irq, void *dev_id)
spin_unlock(&lp->lock); spin_unlock(&lp->lock);
return retval; return retval;
} }
EXPORT_SYMBOL(arcnet_interrupt);
/* This is a generic packet receiver that calls arcnet??_rx depending on the /* This is a generic packet receiver that calls arcnet??_rx depending on the
* protocol ID found. * protocol ID found.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment