powerpc/kcsan: Memory barriers semantics
authorRohan McLure <rmclure@linux.ibm.com>
Mon, 6 Feb 2023 02:17:59 +0000 (13:17 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2023 11:19:56 +0000 (22:19 +1100)
commitb6e259297a6bffb882d55715284bb5219eefda42
tree2d7e5813a40e7260e16e2ad9006e2f6d8d7408c8
parent2a7ce82dc46c591c9244057d89a6591c9639b9b9
powerpc/kcsan: Memory barriers semantics

Annotate memory barriers *mb() with calls to kcsan_mb(), signaling to
compilers supporting KCSAN that the respective memory barrier has been
issued. Rename memory barrier *mb() to __*mb() to opt in for
asm-generic/barrier.h to generate the respective *mb() macro.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230206021801.105268-4-rmclure@linux.ibm.com
arch/powerpc/include/asm/barrier.h