From 6ad90eb0a77b2fee9df4004d2400b9fcf43a1e7f Mon Sep 17 00:00:00 2001 From: avatar Date: Sat, 7 Jan 2006 02:07:08 +0000 Subject: Trying to fix compilation bustage introduced in rev1.160 by converting a missing lo_class to LO_CLASSINDEX(). --- sys/kern/kern_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 9bfe31f1..f06813a 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -884,7 +884,7 @@ mtx_destroy(struct mtx *m) MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0); /* Perform the non-mtx related part of mtx_unlock_spin(). */ - if (m->mtx_object.lo_class == &lock_class_mtx_spin) + if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX) spinlock_exit(); /* Tell witness this isn't locked to make it happy. */ -- cgit v1.1