* [PATCH] trivial: fix comment mentioning abandoned ASSIGN_ONCE
@ 2015-06-02 22:16 Rasmus Villemoes
2015-06-03 15:18 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Villemoes @ 2015-06-02 22:16 UTC (permalink / raw)
To: Christian Borntraeger, Paul E. McKenney; +Cc: linux-kernel, Rasmus Villemoes
Commit 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to
WRITE_ONCE(x, val)") left behind this reference.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
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 867722591be2..38f0668d40aa 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; \
--
2.1.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] trivial: fix comment mentioning abandoned ASSIGN_ONCE
2015-06-02 22:16 [PATCH] trivial: fix comment mentioning abandoned ASSIGN_ONCE Rasmus Villemoes
@ 2015-06-03 15:18 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2015-06-03 15:18 UTC (permalink / raw)
To: Rasmus Villemoes; +Cc: Christian Borntraeger, linux-kernel
On Wed, Jun 03, 2015 at 12:16:16AM +0200, Rasmus Villemoes wrote:
> Commit 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to
> WRITE_ONCE(x, val)") left behind this reference.
>
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Paul E. McKenney <paulmck@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 867722591be2..38f0668d40aa 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; \
> --
> 2.1.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-03 15:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 22:16 [PATCH] trivial: fix comment mentioning abandoned ASSIGN_ONCE Rasmus Villemoes
2015-06-03 15:18 ` Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox