xen/arm64: __cmpxchg and __cmpxchg_mb should always be inline
authorJulien Grall <julien.grall@arm.com>
Wed, 27 Mar 2019 18:45:31 +0000 (18:45 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 13 May 2019 10:28:03 +0000 (11:28 +0100)
commit77639c903c97a0a5699686d236967f4c490230a5
tree8e424f1640225461af29ca3417ceba5e65e9a3c1
parentc451bc33ae0501a4f5cee928c90760233c0b2909
xen/arm64: __cmpxchg and __cmpxchg_mb should always be inline

Currently __cmpxchg_mb and __cmpxchg are only marked inline. The
compiler is free to decide to not honor the inline. This will result to
generate code use __bad_cmpxchg and lead a link failure.

This was caught by Clang 8.0.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/arm64/cmpxchg.h