diff --git a/[refs] b/[refs] index 79cc7f71fe57..cc15c2ca87c6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1d1fb395f6dbc07b36285bbedcf01a73b57f7cb5 +refs/heads/master: 172708d002e0a2aca032b04fe6f2b8525c29244a diff --git a/trunk/include/linux/rcupdate.h b/trunk/include/linux/rcupdate.h index 9cac722b169c..ffe24c09e53d 100644 --- a/trunk/include/linux/rcupdate.h +++ b/trunk/include/linux/rcupdate.h @@ -905,6 +905,14 @@ static inline notrace void rcu_read_unlock_sched_notrace(void) #define RCU_INIT_POINTER(p, v) \ p = (typeof(*v) __force __rcu *)(v) +/** + * RCU_POINTER_INITIALIZER() - statically initialize an RCU protected pointer + * + * GCC-style initialization for an RCU-protected pointer in a structure field. + */ +#define RCU_POINTER_INITIALIZER(p, v) \ + .p = (typeof(*v) __force __rcu *)(v) + static __always_inline bool __is_kfree_rcu_offset(unsigned long offset) { return offset < 4096;