From 538d7df5086144837beb7a9c1e2a94eb637b9904 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 21 Jul 2009 18:09:47 -0400 Subject: [PATCH] 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 --- urcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1