diff options
Diffstat (limited to 'kern/mutex/mutex_adaptive.c')
-rw-r--r-- | kern/mutex/mutex_adaptive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/mutex/mutex_adaptive.c b/kern/mutex/mutex_adaptive.c index 68b006ad..8da55270 100644 --- a/kern/mutex/mutex_adaptive.c +++ b/kern/mutex/mutex_adaptive.c @@ -24,6 +24,7 @@ #include <kern/clock.h> #include <kern/error.h> #include <kern/init.h> +#include <kern/macros.h> #include <kern/mutex.h> #include <kern/mutex_types.h> #include <kern/sleepq.h> @@ -235,7 +236,7 @@ out: void mutex_adaptive_lock_slow(struct mutex *mutex) { - int error; + __unused int error; error = mutex_adaptive_lock_slow_common(mutex, false, 0); assert(!error); |