provide arch_test_bit_acquire for architectures that define test_bit
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 26 Aug 2022 20:43:51 +0000 (16:43 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 27 Aug 2022 16:49:54 +0000 (09:49 -0700)
commitd6ffe6067a54972564552ea45d320fb98db1ac5e
treef5e9fe0bc2a8eaa1669802af515b91498ea806af
parente022620b5d056e822e42eb9bc0f24fcb97389d86
provide arch_test_bit_acquire for architectures that define test_bit

Some architectures define their own arch_test_bit and they also need
arch_test_bit_acquire, otherwise they won't compile.  We also clean up
the code by using the generic test_bit if that is equivalent to the
arch-specific version.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 8238b4579866 ("wait_on_bit: add an acquire memory barrier")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/bitops.h
arch/hexagon/include/asm/bitops.h
arch/ia64/include/asm/bitops.h
arch/m68k/include/asm/bitops.h
arch/s390/include/asm/bitops.h
arch/sh/include/asm/bitops-op32.h