Skip to contentSkip to conversation

trivial: fix comment mentioning abandoned ASSIGN_ONCE

PATCH In review Rasmus Villemoes 2 participants 2 messages Jun 2, 2015 – Jun 3, 2015 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: fix comment mentioning abandoned ASSIGN_ONCE

Commit 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)") left behind this reference.

---
 include/linux/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
index 867722591be2..38f0668d40aa 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; \
Signature · 1 line
2.1.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Rasmus Villemoes

Commit 43239cbe79fc ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)") left behind this reference.

Quoted 20 lines
---
 include/linux/compiler.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler.h +1 -1
index 867722591be2..38f0668d40aa 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; \
Signature · 1 line
2.1.3