Signed-off-by: Ryan Wilson <[email protected]>
Acked-by: Alex Wang <[email protected]>
---
lib/ovs-rcu.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/ovs-rcu.h b/lib/ovs-rcu.h
index 4b451b2..8327517 100644
--- a/lib/ovs-rcu.h
+++ b/lib/ovs-rcu.h
@@ -129,6 +129,7 @@
*/
#if __GNUC__
#define OVSRCU_TYPE(TYPE) struct { ATOMIC(TYPE) p; }
+#define OVSRCU_TYPE_INITIALIZER { NULL }
#define ovsrcu_get__(TYPE, VAR, ORDER) \
({ \
TYPE value__; \
@@ -145,6 +146,7 @@
#else /* not GNU C */
typedef struct ovsrcu_pointer { ATOMIC(void *) p; };
#define OVSRCU_TYPE(TYPE) struct ovsrcu_pointer
+#define OVSRCU_TYPE_INITIALIZER { NULL }
static inline void *
ovsrcu_get__(const struct ovsrcu_pointer *pointer, memory_order order)
{
--
1.7.9.5
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev