[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <38442e3d-1e43-4894-b126-b4258d331a32@app.fastmail.com>
Date: Thu, 30 May 2024 20:05:50 +0200
From: "Arnd Bergmann" <arnd@...db.de>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: "Russell King" <linux@...linux.org.uk>,
"Naresh Kamboju" <naresh.kamboju@...aro.org>,
"open list" <linux-kernel@...r.kernel.org>,
"Linux ARM" <linux-arm-kernel@...ts.infradead.org>,
lkft-triage@...ts.linaro.org,
"Linux Regressions" <regressions@...ts.linux.dev>, rcu <rcu@...r.kernel.org>,
"Dan Carpenter" <dan.carpenter@...aro.org>,
"Joel Fernandes" <joel@...lfernandes.org>, eeraj.upadhyay@...nel.org,
"John Ogness" <john.ogness@...utronix.de>, "Mark Brown" <broonie@...nel.org>
Subject: Re: arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): more
undefined references to `__bad_cmpxchg' follow
On Thu, May 30, 2024, at 19:24, Paul E. McKenney wrote:
> On Thu, May 30, 2024 at 09:37:21AM -0700, Paul E. McKenney wrote:
>> On Thu, May 30, 2024 at 03:27:58PM +0200, Arnd Bergmann wrote:
> And for an untested first attempt at a fix.
>
> What did I mess up this time? ;-)
>
I think only the comment:
>
> switch (size) {
> -#ifndef CONFIG_CPU_V6 /* min ARCH >= ARMv6K */
> +#ifdef CONFIG_CPU_V6 /* min ARCH >= ARMv6K */
> + case 1:
> + oldval = cmpxchg_emu_u8((volatile u8 *)ptr, old, new);
> + break;
> +#else
"min ARCH >= ARMv6K" now applies to the #else side, while the
#if side is the early ARMv6 (pre-v6K).
Arnd
Powered by blists - more mailing lists