datapath: Fix build failure.
authorPravin <pshelar@nicira.com>
Wed, 19 Feb 2014 22:29:39 +0000 (14:29 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Sun, 16 Feb 2014 16:41:52 +0000 (08:41 -0800)
Defines RCU_INIT_POINTER() for compatibility.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
datapath/linux/compat/include/linux/rcupdate.h

index 20cdedf..a497f7b 100644 (file)
@@ -22,4 +22,16 @@ static inline int rcu_read_lock_held(void)
 }
 #endif
 
+#ifndef RCU_INITIALIZER
+#define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v)
+#endif
+
+#ifndef RCU_INIT_POINTER
+#define RCU_INIT_POINTER(p, v) \
+        do { \
+                p = RCU_INITIALIZER(v); \
+        } while (0)
+
+#endif
+
 #endif /* linux/rcupdate.h wrapper */