summaryrefslogtreecommitdiffstats
path: root/arch/m68k/include/asm/atomic_mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/include/asm/atomic_mm.h')
-rw-r--r--arch/m68k/include/asm/atomic_mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/atomic_mm.h b/arch/m68k/include/asm/atomic_mm.h
index d9d2ed647435..6a223b3f7e74 100644
--- a/arch/m68k/include/asm/atomic_mm.h
+++ b/arch/m68k/include/asm/atomic_mm.h
@@ -15,7 +15,7 @@
#define ATOMIC_INIT(i) { (i) }
-#define atomic_read(v) ((v)->counter)
+#define atomic_read(v) (*(volatile int *)&(v)->counter)
#define atomic_set(v, i) (((v)->counter) = i)
static inline void atomic_add(int i, atomic_t *v)
OpenPOWER on IntegriCloud