diff for duplicates of <201009072200.59509.arnd@arndb.de> diff --git a/a/1.txt b/N1/1.txt index 866a0b7..8534a2a 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -4,7 +4,7 @@ On Tuesday 07 September 2010 21:21:55 Kulikov Vasiliy 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)); \ @@ -27,23 +27,23 @@ index 89414d6..743bc3f 100644 #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 4b1c1b8..0352b4e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -3,7 +3,7 @@ "ref\020100907192154.GA14214@albatros\0" "From\0Arnd Bergmann <arnd@arndb.de>\0" "Subject\0Re: [PATCH] md: do not use ++ in rcu_dereference() argument\0" - "Date\0Tue, 07 Sep 2010 20:00:58 +0000\0" + "Date\0Tue, 7 Sep 2010 22:00:58 +0200\0" "To\0Kulikov Vasiliy <segooon@gmail.com>\0" "Cc\0Paul E. McKenney <paulmck@linux.vnet.ibm.com>" kernel-janitors@vger.kernel.org @@ -19,7 +19,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" @@ -42,25 +42,25 @@ " #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})" -9d2092c7afa5fc423c8a820d581736996706b94b90151f3acb6c5c0bacaf3537 +2fcd0efd4f346578c639db730386a6e315d7031f50b120a67df2016c625f1e9d
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.