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:51:27 -0400 |
commit | d4cb2ee17dbb9fb636e5e127e8cb6cbde9d28cef (patch) | |
tree | 4225c3a71a9eadb8c67c1b8028867a517eb21a03 /drivers/net/ethernet/ibm/emac | |
parent | b0983d3c9b132c33b6fb2e28d157a1edc18a173c (diff) |
ibm/emac: 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/ibm/emac')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/debug.h | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/rgmii.h | 18 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/tah.h | 14 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/zmii.h | 18 |
4 files changed, 32 insertions, 32 deletions
diff --git a/drivers/net/ethernet/ibm/emac/debug.h b/drivers/net/ethernet/ibm/emac/debug.h index 59a92d5870b5..9c45efe4c8fe 100644 --- a/drivers/net/ethernet/ibm/emac/debug.h +++ b/drivers/net/ethernet/ibm/emac/debug.h | |||
@@ -29,13 +29,13 @@ | |||
29 | struct emac_instance; | 29 | struct emac_instance; |
30 | struct mal_instance; | 30 | struct mal_instance; |
31 | 31 | ||
32 | extern void emac_dbg_register(struct emac_instance *dev); | 32 | void emac_dbg_register(struct emac_instance *dev); |
33 | extern void emac_dbg_unregister(struct emac_instance *dev); | 33 | void emac_dbg_unregister(struct emac_instance *dev); |
34 | extern void mal_dbg_register(struct mal_instance *mal); | 34 | void mal_dbg_register(struct mal_instance *mal); |
35 | extern void mal_dbg_unregister(struct mal_instance *mal); | 35 | void mal_dbg_unregister(struct mal_instance *mal); |
36 | extern int emac_init_debug(void) __init; | 36 | int emac_init_debug(void) __init; |
37 | extern void emac_fini_debug(void) __exit; | 37 | void emac_fini_debug(void) __exit; |
38 | extern void emac_dbg_dump_all(void); | 38 | void emac_dbg_dump_all(void); |
39 | 39 | ||
40 | # define DBG_LEVEL 1 | 40 | # define DBG_LEVEL 1 |
41 | 41 | ||
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.h b/drivers/net/ethernet/ibm/emac/rgmii.h index 668bceeff4a2..d4f1374d1900 100644 --- a/drivers/net/ethernet/ibm/emac/rgmii.h +++ b/drivers/net/ethernet/ibm/emac/rgmii.h | |||
@@ -56,15 +56,15 @@ struct rgmii_instance { | |||
56 | 56 | ||
57 | #ifdef CONFIG_IBM_EMAC_RGMII | 57 | #ifdef CONFIG_IBM_EMAC_RGMII |
58 | 58 | ||
59 | extern int rgmii_init(void); | 59 | int rgmii_init(void); |
60 | extern void rgmii_exit(void); | 60 | void rgmii_exit(void); |
61 | extern int rgmii_attach(struct platform_device *ofdev, int input, int mode); | 61 | int rgmii_attach(struct platform_device *ofdev, int input, int mode); |
62 | extern void rgmii_detach(struct platform_device *ofdev, int input); | 62 | void rgmii_detach(struct platform_device *ofdev, int input); |
63 | extern void rgmii_get_mdio(struct platform_device *ofdev, int input); | 63 | void rgmii_get_mdio(struct platform_device *ofdev, int input); |
64 | extern void rgmii_put_mdio(struct platform_device *ofdev, int input); | 64 | void rgmii_put_mdio(struct platform_device *ofdev, int input); |
65 | extern void rgmii_set_speed(struct platform_device *ofdev, int input, int speed); | 65 | void rgmii_set_speed(struct platform_device *ofdev, int input, int speed); |
66 | extern int rgmii_get_regs_len(struct platform_device *ofdev); | 66 | int rgmii_get_regs_len(struct platform_device *ofdev); |
67 | extern void *rgmii_dump_regs(struct platform_device *ofdev, void *buf); | 67 | void *rgmii_dump_regs(struct platform_device *ofdev, void *buf); |
68 | 68 | ||
69 | #else | 69 | #else |
70 | 70 | ||
diff --git a/drivers/net/ethernet/ibm/emac/tah.h b/drivers/net/ethernet/ibm/emac/tah.h index 350b7096a041..4d5f336f07b3 100644 --- a/drivers/net/ethernet/ibm/emac/tah.h +++ b/drivers/net/ethernet/ibm/emac/tah.h | |||
@@ -72,13 +72,13 @@ struct tah_instance { | |||
72 | 72 | ||
73 | #ifdef CONFIG_IBM_EMAC_TAH | 73 | #ifdef CONFIG_IBM_EMAC_TAH |
74 | 74 | ||
75 | extern int tah_init(void); | 75 | int tah_init(void); |
76 | extern void tah_exit(void); | 76 | void tah_exit(void); |
77 | extern int tah_attach(struct platform_device *ofdev, int channel); | 77 | int tah_attach(struct platform_device *ofdev, int channel); |
78 | extern void tah_detach(struct platform_device *ofdev, int channel); | 78 | void tah_detach(struct platform_device *ofdev, int channel); |
79 | extern void tah_reset(struct platform_device *ofdev); | 79 | void tah_reset(struct platform_device *ofdev); |
80 | extern int tah_get_regs_len(struct platform_device *ofdev); | 80 | int tah_get_regs_len(struct platform_device *ofdev); |
81 | extern void *tah_dump_regs(struct platform_device *ofdev, void *buf); | 81 | void *tah_dump_regs(struct platform_device *ofdev, void *buf); |
82 | 82 | ||
83 | #else | 83 | #else |
84 | 84 | ||
diff --git a/drivers/net/ethernet/ibm/emac/zmii.h b/drivers/net/ethernet/ibm/emac/zmii.h index 455bfb085493..0959c55b1459 100644 --- a/drivers/net/ethernet/ibm/emac/zmii.h +++ b/drivers/net/ethernet/ibm/emac/zmii.h | |||
@@ -53,15 +53,15 @@ struct zmii_instance { | |||
53 | 53 | ||
54 | #ifdef CONFIG_IBM_EMAC_ZMII | 54 | #ifdef CONFIG_IBM_EMAC_ZMII |
55 | 55 | ||
56 | extern int zmii_init(void); | 56 | int zmii_init(void); |
57 | extern void zmii_exit(void); | 57 | void zmii_exit(void); |
58 | extern int zmii_attach(struct platform_device *ofdev, int input, int *mode); | 58 | int zmii_attach(struct platform_device *ofdev, int input, int *mode); |
59 | extern void zmii_detach(struct platform_device *ofdev, int input); | 59 | void zmii_detach(struct platform_device *ofdev, int input); |
60 | extern void zmii_get_mdio(struct platform_device *ofdev, int input); | 60 | void zmii_get_mdio(struct platform_device *ofdev, int input); |
61 | extern void zmii_put_mdio(struct platform_device *ofdev, int input); | 61 | void zmii_put_mdio(struct platform_device *ofdev, int input); |
62 | extern void zmii_set_speed(struct platform_device *ofdev, int input, int speed); | 62 | void zmii_set_speed(struct platform_device *ofdev, int input, int speed); |
63 | extern int zmii_get_regs_len(struct platform_device *ocpdev); | 63 | int zmii_get_regs_len(struct platform_device *ocpdev); |
64 | extern void *zmii_dump_regs(struct platform_device *ofdev, void *buf); | 64 | void *zmii_dump_regs(struct platform_device *ofdev, void *buf); |
65 | 65 | ||
66 | #else | 66 | #else |
67 | # define zmii_init() 0 | 67 | # define zmii_init() 0 |