lkml.org 
[lkml]   [2021]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] locking/atomic: arch/mips: Fix atomic{_64,}_sub_if_positive
Hi,

On Thu, Jul 29, 2021 at 04:25:49PM +0800, Rui Wang wrote:
> 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>

In your upcoming patches, please change this part to your real name.
Here is a quote from Documentation/process/submitting-patches.rst:

using your real name (sorry, no pseudonyms or anonymous contributions.)

Regards,
Boqun

> ---
> 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
>

\
 
 \ /
  Last update: 2021-07-29 11:05    [W:0.063 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site