aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-12 15:10:16 +0100
committerRichard Henderson <richard.henderson@linaro.org>2025-03-08 09:35:06 -0800
commit15606965400b8f3038d6e85cfe5956d5a6ac33a1 (patch)
tree461ba4f1228fffb574ca8711d0b1f0a3428d3a7d
parentb73f58496dc7e14b56521c9eeec7aa1225861fc2 (diff)
downloadqemu-15606965400b8f3038d6e85cfe5956d5a6ac33a1.zip
qemu-15606965400b8f3038d6e85cfe5956d5a6ac33a1.tar.gz
qemu-15606965400b8f3038d6e85cfe5956d5a6ac33a1.tar.bz2
qemu/atomic: Rename atomic128-cas.h headers using .h.inc suffix
Since commit 139c1837db ("meson: rename included C source files to .c.inc"), QEMU standard procedure for included C files is to use *.c.inc. Besides, since commit 6a0057aa22 ("docs/devel: make a statement about includes") this is documented in the Coding Style: If you do use template header files they should be named with the ``.c.inc`` or ``.h.inc`` suffix to make it clear they are being included for expansion. Therefore rename 'atomic128-cas.h' as 'atomic128-cas.h.inc'. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20241212141018.59428-2-philmd@linaro.org>
-rw-r--r--host/include/aarch64/host/atomic128-cas.h2
-rw-r--r--host/include/generic/host/atomic128-cas.h.inc (renamed from host/include/generic/host/atomic128-cas.h)0
-rw-r--r--include/qemu/atomic128.h2
3 files changed, 2 insertions, 2 deletions
diff --git a/host/include/aarch64/host/atomic128-cas.h b/host/include/aarch64/host/atomic128-cas.h
index 5863010..991da4e 100644
--- a/host/include/aarch64/host/atomic128-cas.h
+++ b/host/include/aarch64/host/atomic128-cas.h
@@ -13,7 +13,7 @@
/* Through gcc 10, aarch64 has no support for 128-bit atomics. */
#if defined(CONFIG_ATOMIC128) || defined(CONFIG_CMPXCHG128)
-#include "host/include/generic/host/atomic128-cas.h"
+#include "host/include/generic/host/atomic128-cas.h.inc"
#else
static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new)
{
diff --git a/host/include/generic/host/atomic128-cas.h b/host/include/generic/host/atomic128-cas.h.inc
index 6b40cc2..6b40cc2 100644
--- a/host/include/generic/host/atomic128-cas.h
+++ b/host/include/generic/host/atomic128-cas.h.inc
diff --git a/include/qemu/atomic128.h b/include/qemu/atomic128.h
index 88af6d4..03c2702 100644
--- a/include/qemu/atomic128.h
+++ b/include/qemu/atomic128.h
@@ -58,7 +58,7 @@
* Therefore, special case each platform.
*/
-#include "host/atomic128-cas.h"
+#include "host/atomic128-cas.h.inc"
#include "host/atomic128-ldst.h"
#endif /* QEMU_ATOMIC128_H */