diff options
author | Joe Perches <joe@perches.com> | 2013-09-23 14:37:59 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-24 19:52:29 -0400 |
commit | a3dabaf02d36dbb4051188b706a3e66e6465c56b (patch) | |
tree | 23b79194896ff40c5e57a6991bc902c0e0c192fa /drivers/net/wireless/ath/ath6kl | |
parent | 8bedb968b246c5bf5009f8f083451506a496d6e8 (diff) |
ath: 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/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/common.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/debug.h | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/common.h b/drivers/net/wireless/ath/ath6kl/common.h index 98a886154d9c..05debf700a84 100644 --- a/drivers/net/wireless/ath/ath6kl/common.h +++ b/drivers/net/wireless/ath/ath6kl/common.h | |||
@@ -22,8 +22,7 @@ | |||
22 | 22 | ||
23 | #define ATH6KL_MAX_IE 256 | 23 | #define ATH6KL_MAX_IE 256 |
24 | 24 | ||
25 | extern __printf(2, 3) | 25 | __printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...); |
26 | int ath6kl_printk(const char *level, const char *fmt, ...); | ||
27 | 26 | ||
28 | /* | 27 | /* |
29 | * Reflects the version of binary interface exposed by ATH6KL target | 28 | * Reflects the version of binary interface exposed by ATH6KL target |
diff --git a/drivers/net/wireless/ath/ath6kl/debug.h b/drivers/net/wireless/ath/ath6kl/debug.h index 74369de00fb5..ca9ba005f287 100644 --- a/drivers/net/wireless/ath/ath6kl/debug.h +++ b/drivers/net/wireless/ath/ath6kl/debug.h | |||
@@ -50,11 +50,10 @@ enum ATH6K_DEBUG_MASK { | |||
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern unsigned int debug_mask; | 52 | extern unsigned int debug_mask; |
53 | extern __printf(2, 3) | 53 | __printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...); |
54 | int ath6kl_printk(const char *level, const char *fmt, ...); | 54 | __printf(1, 2) int ath6kl_info(const char *fmt, ...); |
55 | extern __printf(1, 2) int ath6kl_info(const char *fmt, ...); | 55 | __printf(1, 2) int ath6kl_err(const char *fmt, ...); |
56 | extern __printf(1, 2) int ath6kl_err(const char *fmt, ...); | 56 | __printf(1, 2) int ath6kl_warn(const char *fmt, ...); |
57 | extern __printf(1, 2) int ath6kl_warn(const char *fmt, ...); | ||
58 | 57 | ||
59 | enum ath6kl_war { | 58 | enum ath6kl_war { |
60 | ATH6KL_WAR_INVALID_RATE, | 59 | ATH6KL_WAR_INVALID_RATE, |