public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment
@ 2015-04-30 11:57 Preeti U Murthy
  2015-04-30 12:09 ` Christian Borntraeger
  2015-05-08 13:25 ` [tip:locking/core] kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() " tip-bot for Preeti U Murthy
  0 siblings, 2 replies; 3+ messages in thread
From: Preeti U Murthy @ 2015-04-30 11:57 UTC (permalink / raw)
  To: borntraeger; +Cc: peterz, paulmck, dave, linux-kernel

Looks like commit :

 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)")

left behind a reference to ASSIGN_ONCE. Update this to WRITE_ONCE.

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
---

 include/linux/compiler.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 0e41ca0..e65e0a7 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -446,7 +446,7 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
  * with an explicit memory barrier or atomic instruction that provides the
  * required ordering.
  *
- * If possible use READ_ONCE/ASSIGN_ONCE instead.
+ * If possible use READ_ONCE/WRITE_ONCE instead.
  */
 #define __ACCESS_ONCE(x) ({ \
 	 __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment
  2015-04-30 11:57 [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment Preeti U Murthy
@ 2015-04-30 12:09 ` Christian Borntraeger
  2015-05-08 13:25 ` [tip:locking/core] kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() " tip-bot for Preeti U Murthy
  1 sibling, 0 replies; 3+ messages in thread
From: Christian Borntraeger @ 2015-04-30 12:09 UTC (permalink / raw)
  To: Preeti U Murthy; +Cc: peterz, paulmck, dave, linux-kernel

Am 30.04.2015 um 13:57 schrieb Preeti U Murthy:
> Looks like commit :
> 
>  43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)")
> 
> left behind a reference to ASSIGN_ONCE. Update this to WRITE_ONCE.
> 
> Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>


> ---
> 
>  include/linux/compiler.h |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/compiler.h b/include/linux/compiler.h
> index 0e41ca0..e65e0a7 100644
> --- a/include/linux/compiler.h
> +++ b/include/linux/compiler.h
> @@ -446,7 +446,7 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
>   * with an explicit memory barrier or atomic instruction that provides the
>   * required ordering.
>   *
> - * If possible use READ_ONCE/ASSIGN_ONCE instead.
> + * If possible use READ_ONCE/WRITE_ONCE instead.
>   */
>  #define __ACCESS_ONCE(x) ({ \
>  	 __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:locking/core] kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() in comment
  2015-04-30 11:57 [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment Preeti U Murthy
  2015-04-30 12:09 ` Christian Borntraeger
@ 2015-05-08 13:25 ` tip-bot for Preeti U Murthy
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Preeti U Murthy @ 2015-05-08 13:25 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: mingo, tglx, linux-kernel, peterz, bp, hpa, preeti

Commit-ID:  663fdcbee0a656cdaef934e7f50e6c2670373bc9
Gitweb:     http://git.kernel.org/tip/663fdcbee0a656cdaef934e7f50e6c2670373bc9
Author:     Preeti U Murthy <preeti@linux.vnet.ibm.com>
AuthorDate: Thu, 30 Apr 2015 17:27:21 +0530
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 8 May 2015 12:28:53 +0200

kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() in comment

Looks like commit :

 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)")

left behind a reference to ASSIGN_ONCE(). Update this to WRITE_ONCE().

Signed-off-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: borntraeger@de.ibm.com
Cc: dave@stgolabs.net
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/20150430115721.22278.94082.stgit@preeti.in.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 include/linux/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 8677225..a7c0941 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -450,7 +450,7 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
  * with an explicit memory barrier or atomic instruction that provides the
  * required ordering.
  *
- * If possible use READ_ONCE/ASSIGN_ONCE instead.
+ * If possible use READ_ONCE()/WRITE_ONCE() instead.
  */
 #define __ACCESS_ONCE(x) ({ \
 	 __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-08 13:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-30 11:57 [PATCH] kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment Preeti U Murthy
2015-04-30 12:09 ` Christian Borntraeger
2015-05-08 13:25 ` [tip:locking/core] kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() " tip-bot for Preeti U Murthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox