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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user