From 5884c1a0988faedb58fe13bf6664e57689d6ddf7 Mon Sep 17 00:00:00 2001 From: "Wojciech A. Koszek" Date: Tue, 18 Apr 2006 20:32:42 +0000 Subject: [PATCH] 'owner' is not used without SMP. Fix kernel build for such kernel configurations. Approved by: jhb --- sys/kern/kern_rwlock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index 71e6b27cd33e..d1b99b788555 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -135,7 +135,9 @@ _rw_wunlock(struct rwlock *rw, const char *file, int line) 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 @@ _rw_runlock(struct rwlock *rw, const char *file, int line) 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))