[ovs-dev] [PATCH] datapath: Fix build failure.

Jarno Rajahalme jrajahalme at nicira.com
Wed Feb 19 22:44:33 UTC 2014


Thanks Pravin,

Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

On Feb 19, 2014, at 2:29 PM, Pravin <pshelar at nicira.com> wrote:

> Defines RCU_INIT_POINTER() for compatibility.
> 
> Signed-off-by: Pravin B Shelar <pshelar at 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 at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev




More information about the dev mailing list