--- kern_rwlock.c.orig Tue Apr 18 20:27:54 2006 +++ kern_rwlock.c Tue Apr 18 22:02:13 2006 @@ -135,7 +135,9 @@ void _rw_rlock(struct rwlock *rw, const char *file, int line) { +#ifdef SMP volatile struct thread *owner; +#endif uintptr_t x; KASSERT(rw_wowner(rw) != curthread, @@ -388,7 +390,9 @@ void _rw_wlock_hard(struct rwlock *rw, uintptr_t tid, const char *file, int line) { +#ifdef SMP volatile struct thread *owner; +#endif uintptr_t v; if (LOCK_LOG_TEST(&rw->rw_object, 0))