qemu/atomic: Use macros for CONFIG_ATOMIC64
commit952fd6710e01037746de24f41e63cb4d8cbd49bc
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 11 Jul 2021 15:46:37 +0000 (11 08:46 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Jul 2021 17:45:38 +0000 (21 07:45 -1000)
tree4b9a57349ec1927771cdc3297ff8db7fb772397e
parente77c8b8b8e933414ef07dbed04e02973fccffeb0
qemu/atomic: Use macros for CONFIG_ATOMIC64

Clang warnings about questionable atomic usage get localized
to the inline function in atomic.h.  By using a macro, we get
the full traceback to the original use that caused the warning.

Tested-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/qemu/atomic.h