]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 12:13:41 +0000 (14:13 +0200)
commit69f8bfe920fe43ea08fbd41dfdb5c0dad337ac46
treeb2a7228602ac644767b069883cc6bc0a5464f387
parent63448427542cdfbfcb1c84e1cfbbcef137bd4173
ARM: 7867/1: include: asm: use 'int' instead of 'unsigned long' for 'oldval' in atomic_cmpxchg().

commit 4dcc1cf7316a26e112f5c9fcca531ff98ef44700 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/include/asm/atomic.h