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.
This commit is contained in:
Bruce Evans 2003-11-17 02:55:25 +00:00
parent ed9800b4de
commit 6d800f89c4

View File

@ -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) */