X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=urcu%2Fuatomic%2Fgeneric.h;h=37f59cc11429229ce0dc19aa17a746b03f458cb7;hb=5c28497b02f74a982b0102009b0bcca5f41adbef;hp=9e2e78086c220b7286c508403069d5aa3b27e246;hpb=3daae22a68a6e74c99d39a8c6b628f5c9121c54a;p=userspace-rcu.git diff --git a/urcu/uatomic/generic.h b/urcu/uatomic/generic.h index 9e2e780..37f59cc 100644 --- a/urcu/uatomic/generic.h +++ b/urcu/uatomic/generic.h @@ -38,19 +38,21 @@ extern "C" { #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR static inline __attribute__((always_inline)) -void _uatomic_link_error() +void _uatomic_link_error(void) { #ifdef ILLEGAL_INSTR - /* generate an illegal instruction. Cannot catch this with linker tricks - * when optimizations are disabled. */ + /* + * generate an illegal instruction. Cannot catch this with + * linker tricks when optimizations are disabled. + */ __asm__ __volatile__(ILLEGAL_INSTR); #else - __builtin_trap (); + __builtin_trap(); #endif } #else /* #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR */ -extern void _uatomic_link_error (); +extern void _uatomic_link_error(void); #endif /* #else #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR */ /* cmpxchg */