Defines RCU_INIT_POINTER() for compatibility. Signed-off-by: Pravin B Shelar <pshe...@nicira.com> --- datapath/linux/compat/include/linux/rcupdate.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/datapath/linux/compat/include/linux/rcupdate.h b/datapath/linux/compat/include/linux/rcupdate.h index 20cdedf..a497f7b 100644 --- a/datapath/linux/compat/include/linux/rcupdate.h +++ b/datapath/linux/compat/include/linux/rcupdate.h @@ -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 */ -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev