[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210729082549.144559-1-wangrui@loongson.cn>
Date: Thu, 29 Jul 2021 16:25:49 +0800
From: Rui Wang <wangrui@...ngson.cn>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Peter Zijlstra <peterz@...radead.org>
Cc: Will Deacon <will@...nel.org>, Boqun Feng <boqun.feng@...il.com>,
linux-kernel@...r.kernel.org, linux-mips@...r.kernel.org,
Rui Wang <wangrui@...ngson.cn>, hev <r@....cc>
Subject: [RFC PATCH] locking/atomic: arch/mips: Fix atomic{_64,}_sub_if_positive
This looks like a typo and that caused atomic64 test failed.
Signed-off-by: Rui Wang <wangrui@...ngson.cn>
Signed-off-by: hev <r@....cc>
---
arch/mips/include/asm/atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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; \
\
--
2.32.0
Powered by blists - more mailing lists