From 27c55fed65bc9a61467032ef44e35270004ff239 Mon Sep 17 00:00:00 2001 From: "Paul E. McKenney" Date: Wed, 16 May 2012 15:23:45 -0700 Subject: [PATCH] --- yaml --- r: 312183 b: refs/heads/master c: 172708d002e0a2aca032b04fe6f2b8525c29244a h: refs/heads/master i: 312181: a37e2435631cb474f6e8e27b37335d46579c30f6 312179: 6aa972775902f7f2e730207135d42e5cf86b5955 312175: c88c45fb56f83331084c778e0385cfb92352699d v: v3 --- [refs] | 2 +- trunk/include/linux/rcupdate.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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;