urcu.c: declare noop urcu_init() function non-static
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 21 Jul 2009 22:09:47 +0000 (18:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 21 Jul 2009 22:09:47 +0000 (18:09 -0400)
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 <pierre-marc.fournier@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu.c

diff --git a/urcu.c b/urcu.c
index 8fae8faea8f4bd7b260cdcf6df69777a753a9b58..c210a1341ade8a189752417249bb47bca73a03aa 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -40,7 +40,7 @@
 void __attribute__((constructor)) urcu_init(void);
 void __attribute__((destructor)) urcu_exit(void);
 #else
 void __attribute__((constructor)) urcu_init(void);
 void __attribute__((destructor)) urcu_exit(void);
 #else
-static inline void urcu_init(void)
+void urcu_init(void)
 {
 }
 #endif
 {
 }
 #endif
This page took 0.025189 seconds and 4 git commands to generate.