summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-10-25 20:42:47 +0000
committerjhb <jhb@FreeBSD.org>2014-10-25 20:42:47 +0000
commitf014f5242a3a42c9649142979588db897928ed3d (patch)
treedef81e624b9d9c97563ef6b273aa28770f4b5a62
parenta3ed3e1c799e99308c27946dd0ec8d781eb4e822 (diff)
downloadFreeBSD-src-f014f5242a3a42c9649142979588db897928ed3d.zip
FreeBSD-src-f014f5242a3a42c9649142979588db897928ed3d.tar.gz
Use correct type in __DEVOLATILE().
-rw-r--r--sys/kern/kern_umtx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 6b5056b1..c815e36 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -2895,7 +2895,8 @@ do_sem2_wake(struct thread *td, struct _usem2 *sem)
*/
if (cnt == 1) {
umtxq_unlock(&key);
- count = fuword32(__DEVOLATILE(void *, &sem->_count));
+ count = fuword32(__DEVOLATILE(uint32_t *,
+ &sem->_count));
while (count != -1 && count & USEM_HAS_WAITERS)
count = casuword32(&sem->_count, count,
count & ~USEM_HAS_WAITERS);
OpenPOWER on IntegriCloud