diff options
author | Joe Perches <joe@perches.com> | 2013-09-23 14:37:59 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-24 15:54:12 -0400 |
commit | 3e0dd1f4722f8e0c10a47b9bbb26e891e79fef60 (patch) | |
tree | 51ea1bbf539273dc1f47025830d3ff583d2effff /drivers/net/ethernet/toshiba | |
parent | 95f7f1519d5b1ad7c51b3ac561a0903462202d36 (diff) |
toshiba: Remove extern from function 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.
Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/ethernet/toshiba')
-rw-r--r-- | drivers/net/ethernet/toshiba/ps3_gelic_net.h | 29 | ||||
-rw-r--r-- | drivers/net/ethernet/toshiba/ps3_gelic_wireless.h | 6 | ||||
-rw-r--r-- | drivers/net/ethernet/toshiba/spider_net.h | 4 |
3 files changed, 19 insertions, 20 deletions
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.h b/drivers/net/ethernet/toshiba/ps3_gelic_net.h index 309abb472aa2..8505196be9f5 100644 --- a/drivers/net/ethernet/toshiba/ps3_gelic_net.h +++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.h | |||
@@ -359,27 +359,26 @@ static inline void *port_priv(struct gelic_port *port) | |||
359 | } | 359 | } |
360 | 360 | ||
361 | #ifdef CONFIG_PPC_EARLY_DEBUG_PS3GELIC | 361 | #ifdef CONFIG_PPC_EARLY_DEBUG_PS3GELIC |
362 | extern void udbg_shutdown_ps3gelic(void); | 362 | void udbg_shutdown_ps3gelic(void); |
363 | #else | 363 | #else |
364 | static inline void udbg_shutdown_ps3gelic(void) {} | 364 | static inline void udbg_shutdown_ps3gelic(void) {} |
365 | #endif | 365 | #endif |
366 | 366 | ||
367 | extern int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask); | 367 | int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask); |
368 | /* shared netdev ops */ | 368 | /* shared netdev ops */ |
369 | extern void gelic_card_up(struct gelic_card *card); | 369 | void gelic_card_up(struct gelic_card *card); |
370 | extern void gelic_card_down(struct gelic_card *card); | 370 | void gelic_card_down(struct gelic_card *card); |
371 | extern int gelic_net_open(struct net_device *netdev); | 371 | int gelic_net_open(struct net_device *netdev); |
372 | extern int gelic_net_stop(struct net_device *netdev); | 372 | int gelic_net_stop(struct net_device *netdev); |
373 | extern int gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev); | 373 | int gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev); |
374 | extern void gelic_net_set_multi(struct net_device *netdev); | 374 | void gelic_net_set_multi(struct net_device *netdev); |
375 | extern void gelic_net_tx_timeout(struct net_device *netdev); | 375 | void gelic_net_tx_timeout(struct net_device *netdev); |
376 | extern int gelic_net_change_mtu(struct net_device *netdev, int new_mtu); | 376 | int gelic_net_change_mtu(struct net_device *netdev, int new_mtu); |
377 | extern int gelic_net_setup_netdev(struct net_device *netdev, | 377 | int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card); |
378 | struct gelic_card *card); | ||
379 | 378 | ||
380 | /* shared ethtool ops */ | 379 | /* shared ethtool ops */ |
381 | extern void gelic_net_get_drvinfo(struct net_device *netdev, | 380 | void gelic_net_get_drvinfo(struct net_device *netdev, |
382 | struct ethtool_drvinfo *info); | 381 | struct ethtool_drvinfo *info); |
383 | extern void gelic_net_poll_controller(struct net_device *netdev); | 382 | void gelic_net_poll_controller(struct net_device *netdev); |
384 | 383 | ||
385 | #endif /* _GELIC_NET_H */ | 384 | #endif /* _GELIC_NET_H */ |
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_wireless.h b/drivers/net/ethernet/toshiba/ps3_gelic_wireless.h index f7e51b7d7049..11f443d8e4ea 100644 --- a/drivers/net/ethernet/toshiba/ps3_gelic_wireless.h +++ b/drivers/net/ethernet/toshiba/ps3_gelic_wireless.h | |||
@@ -320,7 +320,7 @@ struct gelic_eurus_cmd { | |||
320 | #define GELIC_WL_PRIV_SET_PSK (SIOCIWFIRSTPRIV + 0) | 320 | #define GELIC_WL_PRIV_SET_PSK (SIOCIWFIRSTPRIV + 0) |
321 | #define GELIC_WL_PRIV_GET_PSK (SIOCIWFIRSTPRIV + 1) | 321 | #define GELIC_WL_PRIV_GET_PSK (SIOCIWFIRSTPRIV + 1) |
322 | 322 | ||
323 | extern int gelic_wl_driver_probe(struct gelic_card *card); | 323 | int gelic_wl_driver_probe(struct gelic_card *card); |
324 | extern int gelic_wl_driver_remove(struct gelic_card *card); | 324 | int gelic_wl_driver_remove(struct gelic_card *card); |
325 | extern void gelic_wl_interrupt(struct net_device *netdev, u64 status); | 325 | void gelic_wl_interrupt(struct net_device *netdev, u64 status); |
326 | #endif /* _GELIC_WIRELESS_H */ | 326 | #endif /* _GELIC_WIRELESS_H */ |
diff --git a/drivers/net/ethernet/toshiba/spider_net.h b/drivers/net/ethernet/toshiba/spider_net.h index 4ba2135474d1..9b6af0845a11 100644 --- a/drivers/net/ethernet/toshiba/spider_net.h +++ b/drivers/net/ethernet/toshiba/spider_net.h | |||
@@ -29,8 +29,8 @@ | |||
29 | 29 | ||
30 | #include <linux/sungem_phy.h> | 30 | #include <linux/sungem_phy.h> |
31 | 31 | ||
32 | extern int spider_net_stop(struct net_device *netdev); | 32 | int spider_net_stop(struct net_device *netdev); |
33 | extern int spider_net_open(struct net_device *netdev); | 33 | int spider_net_open(struct net_device *netdev); |
34 | 34 | ||
35 | extern const struct ethtool_ops spider_net_ethtool_ops; | 35 | extern const struct ethtool_ops spider_net_ethtool_ops; |
36 | 36 | ||