diff for duplicates of <20100907205015.GJ2448@linux.vnet.ibm.com> diff --git a/a/1.txt b/N1/1.txt index f17b766..89ce69e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -5,7 +5,7 @@ On Tue, Sep 07, 2010 at 10:00:58PM +0200, Arnd Bergmann wrote: > > typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ > > ^ > > rcu_lockdep_assert(c); \ -> > (void) (((typeof (*p) space *)p) = p); \ +> > (void) (((typeof (*p) space *)p) == p); \ > > ^ ^ > > smp_read_barrier_depends(); \ > > ((typeof(*p) __force __kernel *)(_________p1)); \ @@ -32,24 +32,24 @@ Let me know when you are satisfied with it, and then I will pick it up. > #define __rcu_access_pointer(p, space) \ > ({ \ > typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ -> - (void) (((typeof (*p) space *)p) = p); \ -> + (void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \ +> - (void) (((typeof (*p) space *)p) == p); \ +> + (void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \ > ((typeof(*p) __force __kernel *)(_________p1)); \ > }) > #define __rcu_dereference_check(p, c, space) \ > ({ \ > typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \ > rcu_lockdep_assert(c); \ -> - (void) (((typeof (*p) space *)p) = p); \ -> + (void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \ +> - (void) (((typeof (*p) space *)p) == p); \ +> + (void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \ > smp_read_barrier_depends(); \ > ((typeof(*p) __force __kernel *)(_________p1)); \ > }) > #define __rcu_dereference_protected(p, c, space) \ > ({ \ > rcu_lockdep_assert(c); \ -> - (void) (((typeof (*p) space *)p) = p); \ -> + (void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \ +> - (void) (((typeof (*p) space *)p) == p); \ +> + (void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \ > ((typeof(*p) __force __kernel *)(p)); \ > }) > diff --git a/a/content_digest b/N1/content_digest index 44a79ba..1a4a22a 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -4,7 +4,7 @@ "ref\0201009072200.59509.arnd@arndb.de\0" "From\0Paul E. McKenney <paulmck@linux.vnet.ibm.com>\0" "Subject\0Re: [PATCH] md: do not use ++ in rcu_dereference() argument\0" - "Date\0Tue, 07 Sep 2010 20:50:15 +0000\0" + "Date\0Tue, 7 Sep 2010 13:50:15 -0700\0" "To\0Arnd Bergmann <arnd@arndb.de>\0" "Cc\0Kulikov Vasiliy <segooon@gmail.com>" kernel-janitors@vger.kernel.org @@ -21,7 +21,7 @@ "> > typeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \\\n" "> > ^\n" "> > rcu_lockdep_assert(c); \\\n" - "> > (void) (((typeof (*p) space *)p) = p); \\\n" + "> > (void) (((typeof (*p) space *)p) == p); \\\n" "> > ^ ^\n" "> > smp_read_barrier_depends(); \\\n" "> > ((typeof(*p) __force __kernel *)(_________p1)); \\\n" @@ -48,26 +48,26 @@ "> #define __rcu_access_pointer(p, space) \\\n" "> \t({ \\\n" "> \t\ttypeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \\\n" - "> -\t\t(void) (((typeof (*p) space *)p) = p); \\\n" - "> +\t\t(void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \\\n" + "> -\t\t(void) (((typeof (*p) space *)p) == p); \\\n" + "> +\t\t(void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \\\n" "> \t\t((typeof(*p) __force __kernel *)(_________p1)); \\\n" "> \t})\n" "> #define __rcu_dereference_check(p, c, space) \\\n" "> \t({ \\\n" "> \t\ttypeof(*p) *_________p1 = (typeof(*p)*__force )ACCESS_ONCE(p); \\\n" "> \t\trcu_lockdep_assert(c); \\\n" - "> -\t\t(void) (((typeof (*p) space *)p) = p); \\\n" - "> +\t\t(void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \\\n" + "> -\t\t(void) (((typeof (*p) space *)p) == p); \\\n" + "> +\t\t(void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \\\n" "> \t\tsmp_read_barrier_depends(); \\\n" "> \t\t((typeof(*p) __force __kernel *)(_________p1)); \\\n" "> \t})\n" "> #define __rcu_dereference_protected(p, c, space) \\\n" "> \t({ \\\n" "> \t\trcu_lockdep_assert(c); \\\n" - "> -\t\t(void) (((typeof (*p) space *)p) = p); \\\n" - "> +\t\t(void) (((typeof (*p) space *)NULL) = (typeof(p))NULL); \\\n" + "> -\t\t(void) (((typeof (*p) space *)p) == p); \\\n" + "> +\t\t(void) (((typeof (*p) space *)NULL) == (typeof(p))NULL); \\\n" "> \t\t((typeof(*p) __force __kernel *)(p)); \\\n" "> \t})\n" > -a98c698ef4e4a59e429059aad61f9ac9c0031ab37bf83cef396e0fc5a41f3fc4 +3665c251cf3ef59192d2a3b43949468e1b19498e238d6f7942ad304daa86f1e2
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.