]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: fix sparse warnings with cmpxchg() & xchg()
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 5 Jun 2022 16:07:38 +0000 (18:07 +0200)
committerakpm <akpm@linux-foundation.org>
Fri, 17 Jun 2022 02:58:20 +0000 (19:58 -0700)
commitdd60037cc79999a23cb0c92ed12ffd8f15ab4673
tree0770fc3968b6bfac95204db0de93ff44adf64423
parentb2a851b4dbb0fde09ed230a1db7e45e6abe5aeb7
ia64: fix sparse warnings with cmpxchg() & xchg()

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
Link: https://lkml.kernel.org/r/20220605160738.79736-1-luc.vanoostenryck@gmail.com
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/ia64/include/uapi/asm/cmpxchg.h