Re: arm-linux-gnueabihf-ld: kernel/rcu/update.o:update.c:(.text+0x1cc4): more undefined references to `__bad_cmpxchg' follow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux