Re: [PATCH] ia64: fix sparse warnings with cmpxchg() & xchg()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>
- Subject: Re: [PATCH] ia64: fix sparse warnings with cmpxchg() & xchg()
- From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
- Date: Mon, 06 Jun 2022 09:53:32 +0200
- Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, "Paul E. McKenney" <paulmck@xxxxxxxxxx>, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>, kernel test robot <lkp@xxxxxxxxx>
- In-reply-to: <20220605160738.79736-1-luc.vanoostenryck@gmail.com>
- References: <87h7547k8c.fsf@toke.dk> <20220605160738.79736-1-luc.vanoostenryck@gmail.com>
Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> writes:
> On IA64, new sparse's warnings where issued after fixing
> some __rcu annotations in kernel/bpf/.
>
> These new warnings are false positives and appear on IA64 because
> on this architecture, the macros for cmpxchg() and xchg() make
> casts that ignore sparse annotations.
>
> This patch contains the minimal patch to fix this issue:
> adding a missing cast and some missing '__force'.
>
> Link: https://lore.kernel.org/r/20220601120013.bq5a3ynbkc3hngm5@mail
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Cc: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
Ah, thank you for taking care of this! :)
Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx>
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]