urcu-bp: no need for weak attribute
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Dec 2011 13:28:01 +0000 (08:28 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 8 Dec 2011 13:28:01 +0000 (08:28 -0500)
We should do this within the user (e.g. liblttng-ust), not within the
urcu-bp library.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
urcu-bp.h

index 34f7a5c0929299385bedd48b04141dc339835b74..28531c942e27eb17713243ba0181b3ce69d7a524 100644 (file)
--- a/urcu-bp.h
+++ b/urcu-bp.h
@@ -87,13 +87,10 @@ extern "C" {
  * See LGPL-only urcu/static/urcu-pointer.h for documentation.
  */
 
-extern void rcu_read_lock(void)
-       __attribute__((weak));
-extern void rcu_read_unlock(void)
-       __attribute__((weak));
+extern void rcu_read_lock(void);
+extern void rcu_read_unlock(void);
 
-extern void *rcu_dereference_sym_bp(void *p)
-       __attribute__((weak));
+extern void *rcu_dereference_sym_bp(void *p);
 #define rcu_dereference_bp(p)                                               \
        ({                                                                   \
                typeof(p) _________p1 = URCU_FORCE_CAST(typeof(p),           \
@@ -101,8 +98,7 @@ extern void *rcu_dereference_sym_bp(void *p)
                (_________p1);                                               \
        })
 
-extern void *rcu_cmpxchg_pointer_sym_bp(void **p, void *old, void *_new)
-       __attribute__((weak));
+extern void *rcu_cmpxchg_pointer_sym_bp(void **p, void *old, void *_new);
 #define rcu_cmpxchg_pointer_bp(p, old, _new)                                \
        ({                                                                   \
                typeof(*(p)) _________pold = (old);                          \
@@ -114,8 +110,7 @@ extern void *rcu_cmpxchg_pointer_sym_bp(void **p, void *old, void *_new)
                (_________p1);                                               \
        })
 
-extern void *rcu_xchg_pointer_sym_bp(void **p, void *v)
-       __attribute__((weak));
+extern void *rcu_xchg_pointer_sym_bp(void **p, void *v);
 #define rcu_xchg_pointer_bp(p, v)                                           \
        ({                                                                   \
                typeof(*(p)) _________pv = (v);                              \
@@ -125,8 +120,7 @@ extern void *rcu_xchg_pointer_sym_bp(void **p, void *v)
                (_________p1);                                               \
        })
 
-extern void *rcu_set_pointer_sym_bp(void **p, void *v)
-       __attribute__((weak));
+extern void *rcu_set_pointer_sym_bp(void **p, void *v);
 #define rcu_set_pointer_bp(p, v)                                            \
        ({                                                                   \
                typeof(*(p)) _________pv = (v);                              \
This page took 0.026696 seconds and 4 git commands to generate.