projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59aabfc
)
kernel: Replace reference to ASSIGN_ONCE() with WRITE_ONCE() in comment
author
Preeti U Murthy
<
[email protected]
>
Thu, 30 Apr 2015 11:57:21 +0000
(17:27 +0530)
committer
Ingo Molnar
<
[email protected]
>
Fri, 8 May 2015 10:28:53 +0000
(12:28 +0200)
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 <
[email protected]
>
Signed-off-by: Peter Zijlstra (Intel) <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
include/linux/compiler.h
patch
|
blob
|
history
diff --git
a/include/linux/compiler.h
b/include/linux/compiler.h
index 867722591be2c7e026e1b97c241e65e27e3b9d1b..a7c0941d10da741c8241bdd3125eaaad4ad9f52e 100644
(file)
--- 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; \