aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m32r/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m32r/include/asm/atomic.h')
-rw-r--r--arch/m32r/include/asm/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/include/asm/atomic.h b/arch/m32r/include/asm/atomic.h
index 63f0cf0f50d..d44a51e5271 100644
--- a/arch/m32r/include/asm/atomic.h
+++ b/arch/m32r/include/asm/atomic.h
@@ -26,7 +26,7 @@
26 * 26 *
27 * Atomically reads the value of @v. 27 * Atomically reads the value of @v.
28 */ 28 */
29#define atomic_read(v) ((v)->counter) 29#define atomic_read(v) (*(volatile int *)&(v)->counter)
30 30
31/** 31/**
32 * atomic_set - set atomic variable 32 * atomic_set - set atomic variable