aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorPreeti U Murthy <preeti@linux.vnet.ibm.com>2015-04-30 07:57:21 -0400
committerIngo Molnar <mingo@kernel.org>2015-05-08 06:28:53 -0400
commit663fdcbee0a656cdaef934e7f50e6c2670373bc9 (patch)
treecaed158e0e8f8c441fb9718de8f424f05ac0a2cc /include/linux/compiler.h
parent59aabfc7e959f5f213e4e5cc7567ab4934da2adf (diff)
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>
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 867722591be2..a7c0941d10da 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
450 * with an explicit memory barrier or atomic instruction that provides the 450 * with an explicit memory barrier or atomic instruction that provides the
451 * required ordering. 451 * required ordering.
452 * 452 *
453 * If possible use READ_ONCE/ASSIGN_ONCE instead. 453 * If possible use READ_ONCE()/WRITE_ONCE() instead.
454 */ 454 */
455#define __ACCESS_ONCE(x) ({ \ 455#define __ACCESS_ONCE(x) ({ \
456 __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \ 456 __maybe_unused typeof(x) __var = (__force typeof(x)) 0; \