'owner' is not used without SMP. Fix kernel build for such kernel
configurations. Approved by: jhb
This commit is contained in:
parent
6030c4e1a5
commit
56c56816b9
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user