ARM: 7867/1: include: asm: use 'int' instead of 'unsigned long' for 'oldval' in atomi...
authorChen Gang <gang.chen@asianux.com>
Sat, 26 Oct 2013 14:07:25 +0000 (15:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 9 Nov 2013 00:00:12 +0000 (00:00 +0000)
commit4dcc1cf7316a26e112f5c9fcca531ff98ef44700
tree4120862133d8c7c18f2f855100d95ce09b6209bb
parent237f12337cfa2175474e4dd015bc07a25eb9080d
ARM: 7867/1: include: asm: use 'int' instead of 'unsigned long' for 'oldval' in atomic_cmpxchg().

For atomic_cmpxchg(), the type of 'oldval' need be 'int' to match the
type of "*ptr" (used by 'ldrex' instruction) and 'old' (used by 'teq'
instruction).

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/atomic.h