Re: [PATCH] ia64: fix sparse warnings with cmpxchg() & xchg()

From: Toke Høiland-Jørgensen
Date: Mon Jun 06 2022 - 03:53:53 EST


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>