X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=urcu%2Fstatic%2Furcu-bp.h;fp=urcu%2Fstatic%2Furcu-bp.h;h=0ae18d6ca48b58de543ffb13c8a828b448ec988f;hb=2bae154a80e64dbfc4c7701049f223d869cab695;hp=0bdefff2b15de3339806e4e3df7cb2117148a651;hpb=8a325ad789d5a2c5e079dd210c2c6c40a1703195;p=urcu.git diff --git a/urcu/static/urcu-bp.h b/urcu/static/urcu-bp.h index 0bdefff..0ae18d6 100644 --- a/urcu/static/urcu-bp.h +++ b/urcu/static/urcu-bp.h @@ -152,7 +152,8 @@ static inline void _rcu_read_lock_update(unsigned long tmp) * intent is that this function meets the 10-line criterion in LGPL, * allowing this function to be invoked directly from non-LGPL code. */ -static inline void _rcu_read_lock(void) +static inline __attribute__((always_inline)) +void _rcu_read_lock(void) { unsigned long tmp; @@ -169,7 +170,8 @@ static inline void _rcu_read_lock(void) * 10 lines of code, and is intended to be usable by non-LGPL code, as * called out in LGPL. */ -static inline void _rcu_read_unlock(void) +static inline __attribute__((always_inline)) +void _rcu_read_unlock(void) { /* * Finish using rcu before decrementing the pointer.