summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-06-02 08:17:42 +0000
committerphk <phk@FreeBSD.org>2001-06-02 08:17:42 +0000
commitb2f9beade9dad8ca12e55d9d2f37b7e838812db3 (patch)
tree0e6ec93b4da265a45250a8031ef80c2921d80b57 /sys/ia64
parentc060eab5cbb051c0ef128799a33b80b93038d708 (diff)
downloadFreeBSD-src-b2f9beade9dad8ca12e55d9d2f37b7e838812db3.zip
FreeBSD-src-b2f9beade9dad8ca12e55d9d2f37b7e838812db3.tar.gz
Properly wrap mtx_intr_enable() macro in "do $bla while (0)"
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/mutex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/mutex.h b/sys/ia64/include/mutex.h
index f32bacd..2e7916c 100644
--- a/sys/ia64/include/mutex.h
+++ b/sys/ia64/include/mutex.h
@@ -38,7 +38,7 @@
#ifdef _KERNEL
-#define mtx_intr_enable(mutex) (mutex)->mtx_savecrit |= IA64_PSR_I
+#define mtx_intr_enable(mutex) do (mutex)->mtx_savecrit |= IA64_PSR_I; while (0)
#endif /* _KERNEL */
OpenPOWER on IntegriCloud