From: Mathieu Desnoyers Date: Wed, 5 Oct 2011 02:01:50 +0000 (-0400) Subject: urcu-pointer: fix rcu_set_pointer unset return value X-Git-Tag: v0.6.6~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8b7bebb109db7682a6308d14fe07789381d23142;p=userspace-rcu.git urcu-pointer: fix rcu_set_pointer unset return value The problem only affected non-_LGPL_SOURCE configs. Reported-by: Stephen Hemminger Fix-proposed-by: "Paul E. McKenney" Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-pointer.h b/urcu-pointer.h index 67ee381..dd64ec4 100644 --- a/urcu-pointer.h +++ b/urcu-pointer.h @@ -101,6 +101,7 @@ extern void *rcu_set_pointer_sym(void **p, void *v); typeof(*(p)) _________p1 = URCU_FORCE_CAST(typeof(*(p)), \ rcu_set_pointer_sym(URCU_FORCE_CAST(void **, p), \ _________pv)); \ + (_________p1); \ }) #endif /* !_LGPL_SOURCE */