summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-11-17 02:55:25 +0000
committerbde <bde@FreeBSD.org>2003-11-17 02:55:25 +0000
commit1c7581a7316f0b661df3fc8606e212d1ba66404e (patch)
tree034e7f8c0a8e3772f14c0ee061c90f76b1796011 /sys/i386/include
parenta2958cef1d957f2573359e38e3935fa2a30a2287 (diff)
downloadFreeBSD-src-1c7581a7316f0b661df3fc8606e212d1ba66404e.zip
FreeBSD-src-1c7581a7316f0b661df3fc8606e212d1ba66404e.tar.gz
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.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/atomic.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h
index a54a5ab..c05befa 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) */
OpenPOWER on IntegriCloud