summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2006-04-18 20:32:42 +0000
committerwkoszek <wkoszek@FreeBSD.org>2006-04-18 20:32:42 +0000
commit56c56816b9f44bbd74b969d3566feefd1141c237 (patch)
tree6d083f2c25a60070048d0c8cf2f03d6b26ffb8fd /sys/kern
parent6030c4e1a574a6ac0170d4cd06987e2466a39e51 (diff)
downloadFreeBSD-src-56c56816b9f44bbd74b969d3566feefd1141c237.zip
FreeBSD-src-56c56816b9f44bbd74b969d3566feefd1141c237.tar.gz
'owner' is not used without SMP. Fix kernel build for such kernel
configurations. Approved by: jhb
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_rwlock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index 71e6b27..d1b99b7 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))
OpenPOWER on IntegriCloud