aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/toshiba
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-23 14:37:59 -0400
committerJoe Perches <joe@perches.com>2013-09-24 15:54:12 -0400
commit3e0dd1f4722f8e0c10a47b9bbb26e891e79fef60 (patch)
tree51ea1bbf539273dc1f47025830d3ff583d2effff /drivers/net/ethernet/toshiba
parent95f7f1519d5b1ad7c51b3ac561a0903462202d36 (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.h29
-rw-r--r--drivers/net/ethernet/toshiba/ps3_gelic_wireless.h6
-rw-r--r--drivers/net/ethernet/toshiba/spider_net.h4
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
362extern void udbg_shutdown_ps3gelic(void); 362void udbg_shutdown_ps3gelic(void);
363#else 363#else
364static inline void udbg_shutdown_ps3gelic(void) {} 364static inline void udbg_shutdown_ps3gelic(void) {}
365#endif 365#endif
366 366
367extern int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask); 367int gelic_card_set_irq_mask(struct gelic_card *card, u64 mask);
368/* shared netdev ops */ 368/* shared netdev ops */
369extern void gelic_card_up(struct gelic_card *card); 369void gelic_card_up(struct gelic_card *card);
370extern void gelic_card_down(struct gelic_card *card); 370void gelic_card_down(struct gelic_card *card);
371extern int gelic_net_open(struct net_device *netdev); 371int gelic_net_open(struct net_device *netdev);
372extern int gelic_net_stop(struct net_device *netdev); 372int gelic_net_stop(struct net_device *netdev);
373extern int gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev); 373int gelic_net_xmit(struct sk_buff *skb, struct net_device *netdev);
374extern void gelic_net_set_multi(struct net_device *netdev); 374void gelic_net_set_multi(struct net_device *netdev);
375extern void gelic_net_tx_timeout(struct net_device *netdev); 375void gelic_net_tx_timeout(struct net_device *netdev);
376extern int gelic_net_change_mtu(struct net_device *netdev, int new_mtu); 376int gelic_net_change_mtu(struct net_device *netdev, int new_mtu);
377extern int gelic_net_setup_netdev(struct net_device *netdev, 377int 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 */
381extern void gelic_net_get_drvinfo(struct net_device *netdev, 380void gelic_net_get_drvinfo(struct net_device *netdev,
382 struct ethtool_drvinfo *info); 381 struct ethtool_drvinfo *info);
383extern void gelic_net_poll_controller(struct net_device *netdev); 382void 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
323extern int gelic_wl_driver_probe(struct gelic_card *card); 323int gelic_wl_driver_probe(struct gelic_card *card);
324extern int gelic_wl_driver_remove(struct gelic_card *card); 324int gelic_wl_driver_remove(struct gelic_card *card);
325extern void gelic_wl_interrupt(struct net_device *netdev, u64 status); 325void 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
32extern int spider_net_stop(struct net_device *netdev); 32int spider_net_stop(struct net_device *netdev);
33extern int spider_net_open(struct net_device *netdev); 33int spider_net_open(struct net_device *netdev);
34 34
35extern const struct ethtool_ops spider_net_ethtool_ops; 35extern const struct ethtool_ops spider_net_ethtool_ops;
36 36