2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00

datapath: Fix build failure.

Defines RCU_INIT_POINTER() for compatibility.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
This commit is contained in:
Pravin
2014-02-19 14:29:39 -08:00
committed by Pravin B Shelar
parent f51e8ccbbb
commit cd31d5001e

View 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 */