Skip to contentSkip to conversation

kernel: Replace reference to ASSIGN_ONCE with WRITE_ONCE in comment

PATCH In review Preeti U Murthy 3 participants 3 messages Apr 30, 2015 – May 8, 2015 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 include/linux/compiler.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
index 0e41ca0..e65e0a7 100644
@@ -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; \
Acked-by on v1 1/1
#1 lore raw

Am 30.04.2015 um 13:57 schrieb Preeti U Murthy:

Quoted 7 lines

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.

Quoted 19 lines

---

 include/linux/compiler.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
index 0e41ca0..e65e0a7 100644
@@ -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; \
#2 lore raw

[tip:locking/core] kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() in comment

In reply to Preeti U Murthy
kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() in comment
Commit-ID:  663fdcbee0a656cdaef934e7f50e6c2670373bc9
Gitweb:     http://git.kernel.org/tip/663fdcbee0a656cdaef934e7f50e6c2670373bc9
Author:     Preeti U Murthy <[email protected]>
AuthorDate: Thu, 30 Apr 2015 17:27:21 +0530
Committer:  Ingo Molnar <[email protected]>
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().

---
 include/linux/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
index 8677225..a7c0941 100644
@@ -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; \