atomic_t: Cast to volatile when accessing atomic variables
authorAnton Blanchard <anton@samba.org>
Mon, 17 May 2010 04:33:53 +0000 (14:33 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 17 May 2010 14:57:27 +0000 (07:57 -0700)
commitf3d46f9d3194e0329216002a8724d4c0957abc79
tree6d9413e4a448d7b8d342c40297c4fbe0b9c4c2f0
parente40152ee1e1c7a63f4777791863215e3faa37a86
atomic_t: Cast to volatile when accessing atomic variables

In preparation for removing volatile from the atomic_t definition, this
patch adds a volatile cast to all the atomic read functions.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20 files changed:
arch/alpha/include/asm/atomic.h
arch/arm/include/asm/atomic.h
arch/avr32/include/asm/atomic.h
arch/cris/include/asm/atomic.h
arch/frv/include/asm/atomic.h
arch/h8300/include/asm/atomic.h
arch/ia64/include/asm/atomic.h
arch/m32r/include/asm/atomic.h
arch/m68k/include/asm/atomic_mm.h
arch/m68k/include/asm/atomic_no.h
arch/mips/include/asm/atomic.h
arch/mn10300/include/asm/atomic.h
arch/parisc/include/asm/atomic.h
arch/sh/include/asm/atomic.h
arch/sparc/include/asm/atomic_32.h
arch/sparc/include/asm/atomic_64.h
arch/x86/include/asm/atomic.h
arch/x86/include/asm/atomic64_64.h
arch/xtensa/include/asm/atomic.h
include/asm-generic/atomic.h