[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YbMuYlTwaedpI6iz@gmail.com>
Date: Fri, 10 Dec 2021 11:39:30 +0100
From: Ingo Molnar <mingo@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>,
Arnd Bergmann <arnd@...db.de>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Darren Hart <dvhart@...radead.org>,
Davidlohr Bueso <dave@...olabs.net>,
André Almeida <andrealmeid@...labora.com>,
Nick Hu <nickhu@...estech.com>,
Greentime Hu <green.hu@...il.com>,
Vincent Chen <deanbo422@...il.com>,
Rich Felker <dalias@...c.org>,
Max Filippov <jcmvbkbc@...il.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org
Subject: Re: [PATCH] futex: Fix sparc32/m68k/nds32 build regression
* Arnd Bergmann <arnd@...nel.org> wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> In one of the revisions of my futex cleanup series, I botched
> up a rename of some function names, breaking sparc32, m68k
> and nds32:
>
> include/asm-generic/futex.h:17:2: error: implicit declaration of function 'futex_atomic_cmpxchg_inatomic_local_generic'; did you mean 'futex_atomic_cmpxchg_inatomic_local'? [-Werror=implicit-function-declaration]
>
> Fix the macros to point to the correct functions.
>
> Reported-by: Stephen Rothwell <sfr@...b.auug.org.au>
> Fixes: 3f2bedabb62c ("futex: Ensure futex_atomic_cmpxchg_inatomic() is present")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> include/asm-generic/futex.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/asm-generic/futex.h b/include/asm-generic/futex.h
> index 30e7fa63b5df..66d6843bfd02 100644
> --- a/include/asm-generic/futex.h
> +++ b/include/asm-generic/futex.h
> @@ -14,9 +14,9 @@
> *
> */
> #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \
> - futex_atomic_cmpxchg_inatomic_local_generic(uval, uaddr, oldval, newval)
> + futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval)
> #define arch_futex_atomic_op_inuser(op, oparg, oval, uaddr) \
> - arch_futex_atomic_op_inuser_local_generic(op, oparg, oval, uaddr)
> + futex_atomic_op_inuser_local(op, oparg, oval, uaddr)
> #endif /* CONFIG_SMP */
> #endif
Doesn't solve the regression on MIPS defconfig:
# nice -n 5 make -j76 CROSS_COMPILE=/home/mingo/gcc/cross/bin/mips64-linux- ARCH=mips kernel/futex/syscalls.o
CALL scripts/atomic/check-atomics.sh
CALL scripts/checksyscalls.sh
CC kernel/futex/syscalls.o
In file included from kernel/futex/futex.h:12,
from kernel/futex/syscalls.c:7:
./arch/mips/include/asm/futex.h: In function 'arch_futex_atomic_op_inuser':
./arch/mips/include/asm/futex.h:89:23: error: implicit declaration of function 'arch_futex_atomic_op_inuser_local'; did you mean 'futex_atomic_op_inuser_local'? [-Werror=implicit-function-declaration]
89 | ret = arch_futex_atomic_op_inuser_local(op, oparg, oval,\
Thanks,
Ingo
Powered by blists - more mailing lists