diff options
Diffstat (limited to 'include/linux/rcupdate.h')
-rw-r--r-- | include/linux/rcupdate.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 9cac722b169c..ffe24c09e53d 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
@@ -905,6 +905,14 @@ static inline notrace void rcu_read_unlock_sched_notrace(void) | |||
905 | #define RCU_INIT_POINTER(p, v) \ | 905 | #define RCU_INIT_POINTER(p, v) \ |
906 | p = (typeof(*v) __force __rcu *)(v) | 906 | p = (typeof(*v) __force __rcu *)(v) |
907 | 907 | ||
908 | /** | ||
909 | * RCU_POINTER_INITIALIZER() - statically initialize an RCU protected pointer | ||
910 | * | ||
911 | * GCC-style initialization for an RCU-protected pointer in a structure field. | ||
912 | */ | ||
913 | #define RCU_POINTER_INITIALIZER(p, v) \ | ||
914 | .p = (typeof(*v) __force __rcu *)(v) | ||
915 | |||
908 | static __always_inline bool __is_kfree_rcu_offset(unsigned long offset) | 916 | static __always_inline bool __is_kfree_rcu_offset(unsigned long offset) |
909 | { | 917 | { |
910 | return offset < 4096; | 918 | return offset < 4096; |