aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rcupdate.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r--include/linux/rcupdate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index ffe24c09e53d..abf44d89c6ce 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -903,7 +903,9 @@ static inline notrace void rcu_read_unlock_sched_notrace(void)
903 * the reader-accessible portions of the linked structure. 903 * the reader-accessible portions of the linked structure.
904 */ 904 */
905#define RCU_INIT_POINTER(p, v) \ 905#define RCU_INIT_POINTER(p, v) \
906 p = (typeof(*v) __force __rcu *)(v) 906 do { \
907 p = (typeof(*v) __force __rcu *)(v); \
908 } while (0)
907 909
908/** 910/**
909 * RCU_POINTER_INITIALIZER() - statically initialize an RCU protected pointer 911 * RCU_POINTER_INITIALIZER() - statically initialize an RCU protected pointer