In linux version < 2.6.34 rcu_dereference_raw() does not exist and needs to be backported.
Signed-off-by: Antonio Quartulli ordex@autistici.org --- compat.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/compat.h b/compat.h index 6a7e03b..23f43d5 100644 --- a/compat.h +++ b/compat.h @@ -81,6 +81,12 @@ static inline void batadv_this_cpu_add(uint64_t *count_ptr, size_t count)
#define rcu_dereference_protected(p, c) (p)
+#define rcu_dereference_raw(p) ({ \ + typeof(p) _________p1 = ACCESS_ONCE(p); \ + smp_read_barrier_depends(); \ + (_________p1); \ + }) + #endif /* < KERNEL_VERSION(2, 6, 34) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
On Saturday, March 16, 2013 18:57:42 Antonio Quartulli wrote:
In linux version < 2.6.34 rcu_dereference_raw() does not exist and needs to be backported.
Signed-off-by: Antonio Quartulli ordex@autistici.org
compat.h | 6 ++++++ 1 file changed, 6 insertions(+)
Applied in revision b4dba47.
Thanks, Marek
b.a.t.m.a.n@lists.open-mesh.org