diff options
author | Rui Wang <wangrui@loongson.cn> | 2021-07-29 12:31:52 +0300 |
---|---|---|
committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-08-05 12:01:18 +0300 |
commit | cb95ea79b3fc772c5873a7a4532ab4c14a455da2 (patch) | |
tree | 6b7e0b6971004bbe0cd56492e4a698046b392cfd /arch/mips | |
parent | ad548993a66c498267695edd8b19a682be0e3a8b (diff) | |
download | linux-cb95ea79b3fc772c5873a7a4532ab4c14a455da2.tar.xz |
MIPS: locking/atomic: Fix atomic{_64,}_sub_if_positive
This looks like a typo and that caused atomic64 test failed.
Signed-off-by: Rui Wang <wangrui@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/atomic.h b/arch/mips/include/asm/atomic.h index 95e1f7f3597f..a0b9e7c1e4fc 100644 --- a/arch/mips/include/asm/atomic.h +++ b/arch/mips/include/asm/atomic.h @@ -206,7 +206,7 @@ ATOMIC_OPS(atomic64, xor, s64, ^=, xor, lld, scd) * The function returns the old value of @v minus @i. */ #define ATOMIC_SIP_OP(pfx, type, op, ll, sc) \ -static __inline__ int arch_##pfx##_sub_if_positive(type i, pfx##_t * v) \ +static __inline__ type arch_##pfx##_sub_if_positive(type i, pfx##_t * v) \ { \ type temp, result; \ \ |