git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f51e8cc
)
datapath: Fix build failure.
author
Pravin
<pshelar@nicira.com>
Wed, 19 Feb 2014 22:29:39 +0000
(14:29 -0800)
committer
Pravin B Shelar
<pshelar@nicira.com>
Sun, 16 Feb 2014 16:41:52 +0000
(08:41 -0800)
Defines RCU_INIT_POINTER() for compatibility.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
datapath/linux/compat/include/linux/rcupdate.h
patch
|
blob
|
history
diff --git
a/datapath/linux/compat/include/linux/rcupdate.h
b/datapath/linux/compat/include/linux/rcupdate.h
index
20cdedf
..
a497f7b
100644
(file)
--- 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 */