All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] locking/atomic: arch/mips: Fix atomic{_64,}_sub_if_positive
@ 2021-07-29  8:25 Rui Wang
  2021-07-29  9:03 ` Boqun Feng
  2021-07-29  9:53 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 8+ messages in thread
From: Rui Wang @ 2021-07-29  8:25 UTC (permalink / raw)
  To: Thomas Bogendoerfer, Peter Zijlstra
  Cc: Will Deacon, Boqun Feng, linux-kernel, linux-mips, Rui Wang, hev

This looks like a typo and that caused atomic64 test failed.

Signed-off-by: Rui Wang <wangrui@loongson.cn>
Signed-off-by: hev <r@hev.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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-04 13:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29  8:25 [RFC PATCH] locking/atomic: arch/mips: Fix atomic{_64,}_sub_if_positive Rui Wang
2021-07-29  9:03 ` Boqun Feng
2021-07-29  9:15   ` hev
2021-07-29  9:53 ` Thomas Bogendoerfer
2021-07-29 11:00   ` hev
2021-07-29 12:31   ` hev
2021-07-29 14:33     ` Thomas Bogendoerfer
2021-08-04 13:46       ` hev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.