Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cd74e3b authored by Jiri Slaby's avatar Jiri Slaby Committed by John W. Linville
Browse files

WDEV: ath5k, typecheck on nonDEBUG



At least type check the ATH5K_TRACE paramter on !ATH5K_DEBUG configs.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Acked-by: default avatarLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6e33e30d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -165,7 +165,9 @@ ath5k_debug_printtxbuf(struct ath5k_softc *sc,

#else /* no debugging */

#define ATH5K_TRACE(_sc) /* empty */
#include <linux/compiler.h>

#define ATH5K_TRACE(_sc) typecheck(struct ath5k_softc *, (_sc))

static inline void __attribute__ ((format (printf, 3, 4)))
ATH5K_DBG(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...) {}