diff options
author | Jesper Juhl <juhl@dif.dk> | 2005-07-27 14:46:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:26:20 -0400 |
commit | 77933d7276ee8fa0e2947641941a6f7a100a327b (patch) | |
tree | e3a42724642410f5257c794a71b34642092eedd5 /drivers/net/plip.c | |
parent | 03e259a9cdbd0583e71468293aaa1ccadbdaeff1 (diff) |
[PATCH] clean up inline static vs static inline
`gcc -W' likes to complain if the static keyword is not at the beginning of
the declaration. This patch fixes all remaining occurrences of "inline
static" up with "static inline" in the entire kernel tree (140 occurrences in
47 files).
While making this change I came across a few lines with trailing whitespace
that I also fixed up, I have also added or removed a blank line or two here
and there, but there are no functional changes in the patch.
Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/plip.c')
-rw-r--r-- | drivers/net/plip.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/drivers/net/plip.c b/drivers/net/plip.c index 21537ee3a6a7..1bd22cd40c75 100644 --- a/drivers/net/plip.c +++ b/drivers/net/plip.c | |||
@@ -160,7 +160,7 @@ static struct net_device_stats *plip_get_stats(struct net_device *dev); | |||
160 | static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | 160 | static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); |
161 | static int plip_preempt(void *handle); | 161 | static int plip_preempt(void *handle); |
162 | static void plip_wakeup(void *handle); | 162 | static void plip_wakeup(void *handle); |
163 | 163 | ||
164 | enum plip_connection_state { | 164 | enum plip_connection_state { |
165 | PLIP_CN_NONE=0, | 165 | PLIP_CN_NONE=0, |
166 | PLIP_CN_RECEIVE, | 166 | PLIP_CN_RECEIVE, |
@@ -231,8 +231,8 @@ struct net_local { | |||
231 | atomic_t kill_timer; | 231 | atomic_t kill_timer; |
232 | struct semaphore killed_timer_sem; | 232 | struct semaphore killed_timer_sem; |
233 | }; | 233 | }; |
234 | 234 | ||
235 | inline static void enable_parport_interrupts (struct net_device *dev) | 235 | static inline void enable_parport_interrupts (struct net_device *dev) |
236 | { | 236 | { |
237 | if (dev->irq != -1) | 237 | if (dev->irq != -1) |
238 | { | 238 | { |
@@ -242,7 +242,7 @@ inline static void enable_parport_interrupts (struct net_device *dev) | |||
242 | } | 242 | } |
243 | } | 243 | } |
244 | 244 | ||
245 | inline static void disable_parport_interrupts (struct net_device *dev) | 245 | static inline void disable_parport_interrupts (struct net_device *dev) |
246 | { | 246 | { |
247 | if (dev->irq != -1) | 247 | if (dev->irq != -1) |
248 | { | 248 | { |
@@ -252,7 +252,7 @@ inline static void disable_parport_interrupts (struct net_device *dev) | |||
252 | } | 252 | } |
253 | } | 253 | } |
254 | 254 | ||
255 | inline static void write_data (struct net_device *dev, unsigned char data) | 255 | static inline void write_data (struct net_device *dev, unsigned char data) |
256 | { | 256 | { |
257 | struct parport *port = | 257 | struct parport *port = |
258 | ((struct net_local *)dev->priv)->pardev->port; | 258 | ((struct net_local *)dev->priv)->pardev->port; |
@@ -260,14 +260,14 @@ inline static void write_data (struct net_device *dev, unsigned char data) | |||
260 | port->ops->write_data (port, data); | 260 | port->ops->write_data (port, data); |
261 | } | 261 | } |
262 | 262 | ||
263 | inline static unsigned char read_status (struct net_device *dev) | 263 | static inline unsigned char read_status (struct net_device *dev) |
264 | { | 264 | { |
265 | struct parport *port = | 265 | struct parport *port = |
266 | ((struct net_local *)dev->priv)->pardev->port; | 266 | ((struct net_local *)dev->priv)->pardev->port; |
267 | 267 | ||
268 | return port->ops->read_status (port); | 268 | return port->ops->read_status (port); |
269 | } | 269 | } |
270 | 270 | ||
271 | /* Entry point of PLIP driver. | 271 | /* Entry point of PLIP driver. |
272 | Probe the hardware, and register/initialize the driver. | 272 | Probe the hardware, and register/initialize the driver. |
273 | 273 | ||
@@ -316,7 +316,7 @@ plip_init_netdev(struct net_device *dev) | |||
316 | 316 | ||
317 | spin_lock_init(&nl->lock); | 317 | spin_lock_init(&nl->lock); |
318 | } | 318 | } |
319 | 319 | ||
320 | /* Bottom half handler for the delayed request. | 320 | /* Bottom half handler for the delayed request. |
321 | This routine is kicked by do_timer(). | 321 | This routine is kicked by do_timer(). |
322 | Request `plip_bh' to be invoked. */ | 322 | Request `plip_bh' to be invoked. */ |
@@ -471,7 +471,7 @@ plip_bh_timeout_error(struct net_device *dev, struct net_local *nl, | |||
471 | 471 | ||
472 | return TIMEOUT; | 472 | return TIMEOUT; |
473 | } | 473 | } |
474 | 474 | ||
475 | static int | 475 | static int |
476 | plip_none(struct net_device *dev, struct net_local *nl, | 476 | plip_none(struct net_device *dev, struct net_local *nl, |
477 | struct plip_local *snd, struct plip_local *rcv) | 477 | struct plip_local *snd, struct plip_local *rcv) |
@@ -481,7 +481,7 @@ plip_none(struct net_device *dev, struct net_local *nl, | |||
481 | 481 | ||
482 | /* PLIP_RECEIVE --- receive a byte(two nibbles) | 482 | /* PLIP_RECEIVE --- receive a byte(two nibbles) |
483 | Returns OK on success, TIMEOUT on timeout */ | 483 | Returns OK on success, TIMEOUT on timeout */ |
484 | inline static int | 484 | static inline int |
485 | plip_receive(unsigned short nibble_timeout, struct net_device *dev, | 485 | plip_receive(unsigned short nibble_timeout, struct net_device *dev, |
486 | enum plip_nibble_state *ns_p, unsigned char *data_p) | 486 | enum plip_nibble_state *ns_p, unsigned char *data_p) |
487 | { | 487 | { |
@@ -582,7 +582,6 @@ static __be16 plip_type_trans(struct sk_buff *skb, struct net_device *dev) | |||
582 | return htons(ETH_P_802_2); | 582 | return htons(ETH_P_802_2); |
583 | } | 583 | } |
584 | 584 | ||
585 | |||
586 | /* PLIP_RECEIVE_PACKET --- receive a packet */ | 585 | /* PLIP_RECEIVE_PACKET --- receive a packet */ |
587 | static int | 586 | static int |
588 | plip_receive_packet(struct net_device *dev, struct net_local *nl, | 587 | plip_receive_packet(struct net_device *dev, struct net_local *nl, |
@@ -702,7 +701,7 @@ plip_receive_packet(struct net_device *dev, struct net_local *nl, | |||
702 | 701 | ||
703 | /* PLIP_SEND --- send a byte (two nibbles) | 702 | /* PLIP_SEND --- send a byte (two nibbles) |
704 | Returns OK on success, TIMEOUT when timeout */ | 703 | Returns OK on success, TIMEOUT when timeout */ |
705 | inline static int | 704 | static inline int |
706 | plip_send(unsigned short nibble_timeout, struct net_device *dev, | 705 | plip_send(unsigned short nibble_timeout, struct net_device *dev, |
707 | enum plip_nibble_state *ns_p, unsigned char data) | 706 | enum plip_nibble_state *ns_p, unsigned char data) |
708 | { | 707 | { |
@@ -902,7 +901,7 @@ plip_error(struct net_device *dev, struct net_local *nl, | |||
902 | 901 | ||
903 | return OK; | 902 | return OK; |
904 | } | 903 | } |
905 | 904 | ||
906 | /* Handle the parallel port interrupts. */ | 905 | /* Handle the parallel port interrupts. */ |
907 | static void | 906 | static void |
908 | plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) | 907 | plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) |
@@ -957,7 +956,7 @@ plip_interrupt(int irq, void *dev_id, struct pt_regs * regs) | |||
957 | 956 | ||
958 | spin_unlock_irq(&nl->lock); | 957 | spin_unlock_irq(&nl->lock); |
959 | } | 958 | } |
960 | 959 | ||
961 | static int | 960 | static int |
962 | plip_tx_packet(struct sk_buff *skb, struct net_device *dev) | 961 | plip_tx_packet(struct sk_buff *skb, struct net_device *dev) |
963 | { | 962 | { |
@@ -1238,7 +1237,7 @@ plip_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
1238 | } | 1237 | } |
1239 | return 0; | 1238 | return 0; |
1240 | } | 1239 | } |
1241 | 1240 | ||
1242 | static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 }; | 1241 | static int parport[PLIP_MAX] = { [0 ... PLIP_MAX-1] = -1 }; |
1243 | static int timid; | 1242 | static int timid; |
1244 | 1243 | ||