From: Jiri Slaby Date: Fri, 15 Feb 2008 20:58:53 +0000 (+0100) Subject: WDEV: ath5k, typecheck on nonDEBUG X-Git-Tag: v2.6.26-rc1~1138^2~530^2~68 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6cd74e3b99ec5aeed5346b1b3777903fa5e47db7;p=linux-2.6-omap-h63xx.git WDEV: ath5k, typecheck on nonDEBUG At least type check the ATH5K_TRACE paramter on !ATH5K_DEBUG configs. Signed-off-by: Jiri Slaby Cc: Nick Kossifidis Acked-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath5k/debug.h b/drivers/net/wireless/ath5k/debug.h index 16fbb6fbab3..8c0b5c57c76 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, #else /* no debugging */ -#define ATH5K_TRACE(_sc) /* empty */ +#include + +#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, ...) {}