From bf65ba4ee8bf2fb7ac164824c27576ef24a61e6c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 8 Oct 2013 09:23:10 -0400 Subject: [PATCH] Fix: urcu-qsbr: reversed logic on RCU_DEBUG * Dmitri Shubin wrote: > Shouldn't the condition in line 94 actually be > > 94 #if (!defined(BUILD_QSBR_LIB) && !defined(RCU_DEBUG)) > > So when RCU_DEBUG is _not_ defined we get static inlines for > rcu_read_{,un}lock() ? Indeed! Reported-by: Dmitri Shubin Signed-off-by: Mathieu Desnoyers --- urcu-qsbr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urcu-qsbr.h b/urcu-qsbr.h index a2f6575..efa0ec0 100644 --- a/urcu-qsbr.h +++ b/urcu-qsbr.h @@ -90,7 +90,7 @@ extern "C" { * library debugging & tracing features we could come up with. */ -#if (!defined(BUILD_QSBR_LIB) && defined(RCU_DEBUG)) +#if (!defined(BUILD_QSBR_LIB) && !defined(RCU_DEBUG)) static inline void rcu_read_lock(void) { -- 2.39.5