'owner' is not used without SMP. Fix kernel build for such kernel

configurations.

Approved by:	jhb
This commit is contained in:
wkoszek 2006-04-18 20:32:42 +00:00
parent 6030c4e1a5
commit 56c56816b9

View File

@ -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))