diff options
Diffstat (limited to 'include/sys/callb.h')
-rw-r--r-- | include/sys/callb.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/sys/callb.h b/include/sys/callb.h index 39cdf9622..0857d6d8a 100644 --- a/include/sys/callb.h +++ b/include/sys/callb.h @@ -8,15 +8,12 @@ extern "C" { #include <linux/module.h> #include <sys/mutex.h> -#define DEBUG_CALLB - -#ifndef DEBUG_CALLB +#ifdef DEBUG_CALLB #define CALLB_CPR_ASSERT(cp) ASSERT(MUTEX_HELD((cp)->cc_lockp)); #else -#define CALLB_CPR_ASSERT(cp) +#define CALLB_CPR_ASSERT(cp) (void)0 #endif - typedef struct callb_cpr { kmutex_t *cc_lockp; } callb_cpr_t; |