diff options
-rw-r--r-- | drivers/net/wireless/ath/ath.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index 3eb95e268f03..e43210c8585c 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h | |||
@@ -272,7 +272,10 @@ ath_dbg(struct ath_common *common, enum ATH_DEBUG dbg_mask, | |||
272 | return 0; | 272 | return 0; |
273 | } | 273 | } |
274 | #define ATH_DBG_WARN(foo, arg...) do {} while (0) | 274 | #define ATH_DBG_WARN(foo, arg...) do {} while (0) |
275 | #define ATH_DBG_WARN_ON_ONCE(foo) do {} while (0) | 275 | #define ATH_DBG_WARN_ON_ONCE(foo) ({ \ |
276 | int __ret_warn_once = !!(foo); \ | ||
277 | unlikely(__ret_warn_once); \ | ||
278 | }) | ||
276 | 279 | ||
277 | #endif /* CONFIG_ATH_DEBUG */ | 280 | #endif /* CONFIG_ATH_DEBUG */ |
278 | 281 | ||