summaryrefslogtreecommitdiff
path: root/kernel/rwsem.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-10-26 15:07:04 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-05 22:35:38 -0800
commit4db1ea4eb527d38ea61b449474a79438c6a8af93 (patch)
treee05e97eff076b7439773aa365eda2409bf4988d0 /kernel/rwsem.c
parent716669313b88cce317a83230cde7644451aea9f4 (diff)
ARM: 7866/1: include: asm: use 'long long' instead of 'u64' within atomic.h
commit 237f12337cfa2175474e4dd015bc07a25eb9080d upstream. atomic* value is signed value, and atomic* functions need also process signed value (parameter value, and return value), so 32-bit arm need use 'long long' instead of 'u64'. After replacement, it will also fix a bug for atomic64_add_negative(): "u64 is never less than 0". The modifications are: in vim, use "1,% s/\<u64\>/long long/g" command. remove '__aligned(8)' which is useless for 64-bit. be sure of 80 column limitation after replacement. Acked-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> Cc: Hou Pengyang <houpengyang@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/rwsem.c')
0 files changed, 0 insertions, 0 deletions