From: Pierre-Marc Fournier Date: Tue, 21 Jul 2009 22:09:47 +0000 (-0400) Subject: urcu.c: declare noop urcu_init() function non-static X-Git-Tag: v0.1~102 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=538d7df5086144837beb7a9c1e2a94eb637b9904;p=urcu.git urcu.c: declare noop urcu_init() function non-static The RCU library is sometimes used in constructor context. In these cases, because it is impossible to predict whether the liburcu constructor has already been called, an explicit call to the urcu_init function must be made. Declaring the noop version of the urcu_init() function as static breaks code that calls urcu_init() explicitly when CONFIG_AVOID_SIGNALS is true. To prevent this, this patch makes the declaration non-static. From: Pierre-Marc Fournier Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.c b/urcu.c index 8fae8fa..c210a13 100644 --- a/urcu.c +++ b/urcu.c @@ -40,7 +40,7 @@ void __attribute__((constructor)) urcu_init(void); void __attribute__((destructor)) urcu_exit(void); #else -static inline void urcu_init(void) +void urcu_init(void) { } #endif