aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-23 18:11:32 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-24 10:09:27 -0400
commit6ae97e834a36ef0413ee1d3bf057ab8ee8ac63ab (patch)
tree3aa0ea0ecb5cf76fb061baa81901ce6a5a6dc203
parent3398032c65127749683e44cc263049606fec4322 (diff)
atheros: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/atheros/atl1c/atl1c.h6
-rw-r--r--drivers/net/ethernet/atheros/atl1e/atl1e.h12
-rw-r--r--drivers/net/ethernet/atheros/atlx/atl2.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c.h b/drivers/net/ethernet/atheros/atl1c/atl1c.h
index 0f0556526ba9..7f9369a3b378 100644
--- a/drivers/net/ethernet/atheros/atl1c/atl1c.h
+++ b/drivers/net/ethernet/atheros/atl1c/atl1c.h
@@ -600,7 +600,7 @@ struct atl1c_adapter {
600extern char atl1c_driver_name[]; 600extern char atl1c_driver_name[];
601extern char atl1c_driver_version[]; 601extern char atl1c_driver_version[];
602 602
603extern void atl1c_reinit_locked(struct atl1c_adapter *adapter); 603void atl1c_reinit_locked(struct atl1c_adapter *adapter);
604extern s32 atl1c_reset_hw(struct atl1c_hw *hw); 604s32 atl1c_reset_hw(struct atl1c_hw *hw);
605extern void atl1c_set_ethtool_ops(struct net_device *netdev); 605void atl1c_set_ethtool_ops(struct net_device *netdev);
606#endif /* _ATL1C_H_ */ 606#endif /* _ATL1C_H_ */
diff --git a/drivers/net/ethernet/atheros/atl1e/atl1e.h b/drivers/net/ethernet/atheros/atl1e/atl1e.h
index b5fd934585e9..1b0fe2d04a0e 100644
--- a/drivers/net/ethernet/atheros/atl1e/atl1e.h
+++ b/drivers/net/ethernet/atheros/atl1e/atl1e.h
@@ -499,10 +499,10 @@ struct atl1e_adapter {
499extern char atl1e_driver_name[]; 499extern char atl1e_driver_name[];
500extern char atl1e_driver_version[]; 500extern char atl1e_driver_version[];
501 501
502extern void atl1e_check_options(struct atl1e_adapter *adapter); 502void atl1e_check_options(struct atl1e_adapter *adapter);
503extern int atl1e_up(struct atl1e_adapter *adapter); 503int atl1e_up(struct atl1e_adapter *adapter);
504extern void atl1e_down(struct atl1e_adapter *adapter); 504void atl1e_down(struct atl1e_adapter *adapter);
505extern void atl1e_reinit_locked(struct atl1e_adapter *adapter); 505void atl1e_reinit_locked(struct atl1e_adapter *adapter);
506extern s32 atl1e_reset_hw(struct atl1e_hw *hw); 506s32 atl1e_reset_hw(struct atl1e_hw *hw);
507extern void atl1e_set_ethtool_ops(struct net_device *netdev); 507void atl1e_set_ethtool_ops(struct net_device *netdev);
508#endif /* _ATL1_E_H_ */ 508#endif /* _ATL1_E_H_ */
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.h b/drivers/net/ethernet/atheros/atlx/atl2.h
index 3ebe19f7242b..2f27d4c4c3ad 100644
--- a/drivers/net/ethernet/atheros/atlx/atl2.h
+++ b/drivers/net/ethernet/atheros/atlx/atl2.h
@@ -42,7 +42,7 @@
42#include "atlx.h" 42#include "atlx.h"
43 43
44#ifdef ETHTOOL_OPS_COMPAT 44#ifdef ETHTOOL_OPS_COMPAT
45extern int ethtool_ioctl(struct ifreq *ifr); 45int ethtool_ioctl(struct ifreq *ifr);
46#endif 46#endif
47 47
48#define PCI_COMMAND_REGISTER PCI_COMMAND 48#define PCI_COMMAND_REGISTER PCI_COMMAND