diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-02-15 15:58:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:11 -0500 |
commit | 6cd74e3b99ec5aeed5346b1b3777903fa5e47db7 (patch) | |
tree | 5e37a36bb840c5994ecf751a0783be04d0c46bc0 /drivers/net | |
parent | 6e33e30d7ae11d527ad1d65ec09a65467d6db1b2 (diff) |
WDEV: ath5k, typecheck on nonDEBUG
At least type check the ATH5K_TRACE paramter on !ATH5K_DEBUG configs.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath5k/debug.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath5k/debug.h b/drivers/net/wireless/ath5k/debug.h index 16fbb6fbab35..8c0b5c57c76b 100644 --- a/drivers/net/wireless/ath5k/debug.h +++ b/drivers/net/wireless/ath5k/debug.h | |||
@@ -165,7 +165,9 @@ ath5k_debug_printtxbuf(struct ath5k_softc *sc, | |||
165 | 165 | ||
166 | #else /* no debugging */ | 166 | #else /* no debugging */ |
167 | 167 | ||
168 | #define ATH5K_TRACE(_sc) /* empty */ | 168 | #include <linux/compiler.h> |
169 | |||
170 | #define ATH5K_TRACE(_sc) typecheck(struct ath5k_softc *, (_sc)) | ||
169 | 171 | ||
170 | static inline void __attribute__ ((format (printf, 3, 4))) | 172 | static inline void __attribute__ ((format (printf, 3, 4))) |
171 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} | 173 | ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {} |