Signed-off-by: Ryan Wilson <wr...@nicira.com>
Acked-by: Alex Wang <al...@nicira.com>
---
 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
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to