From 6d800f89c486acc64d4eccb5f723c8653c8a91cc Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 17 Nov 2003 02:55:25 +0000 Subject: [PATCH] Fixed pedantic syntax errors. Many macros didn't permit a semicolon after their invocation in the !KLD_MODULE case, but a semicolon is provided after all invocations and is required in the KLD_MODULE case. --- sys/i386/include/atomic.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h index a54a5ab383b4..c05befafad35 100644 --- a/sys/i386/include/atomic.h +++ b/sys/i386/include/atomic.h @@ -98,7 +98,8 @@ atomic_##NAME##_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\ __asm __volatile(__XSTRING(MPLOCKED) OP \ : "+m" (*p) \ : CONS (V)); \ -} +} \ +struct __hack #else /* !__GNUC__ */ @@ -191,7 +192,8 @@ atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\ { \ *p = v; \ __asm __volatile("" : : : "memory"); \ -} +} \ +struct __hack #else /* !defined(I386_CPU) */ @@ -219,7 +221,8 @@ atomic_store_rel_##TYPE(volatile u_##TYPE *p, u_##TYPE v)\ : "+m" (*p), /* 0 */ \ "+r" (v) /* 1 */ \ : : "memory"); \ -} +} \ +struct __hack #endif /* defined(I386_CPU) */