]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qemu/atomic: Rename atomic128-ldst.h headers using .h.inc suffix
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 12 Dec 2024 14:10:17 +0000 (15:10 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Mar 2025 17:35:06 +0000 (09:35 -0800)
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-ldst.h' as 'atomic128-ldst.h.inc'.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20241212141018.59428-3-philmd@linaro.org>

host/include/aarch64/host/atomic128-ldst.h.inc [moved from host/include/aarch64/host/atomic128-ldst.h with 100% similarity]
host/include/generic/host/atomic128-ldst.h.inc [moved from host/include/generic/host/atomic128-ldst.h with 100% similarity]
host/include/loongarch64/host/atomic128-ldst.h.inc [moved from host/include/loongarch64/host/atomic128-ldst.h with 100% similarity]
host/include/x86_64/host/atomic128-ldst.h.inc [moved from host/include/x86_64/host/atomic128-ldst.h with 96% similarity]
host/include/x86_64/host/load-extract-al16-al8.h.inc
include/qemu/atomic128.h

similarity index 96%
rename from host/include/x86_64/host/atomic128-ldst.h
rename to host/include/x86_64/host/atomic128-ldst.h.inc
index 8d6f909d3c9c0677b9d3481eee6f99443dddfa6b..4c698e3246f4cfe0737f5de77185b90cb3844f96 100644 (file)
@@ -69,7 +69,7 @@ static inline void atomic16_set(Int128 *ptr, Int128 val)
 }
 #else
 /* Provide QEMU_ERROR stubs. */
-#include "host/include/generic/host/atomic128-ldst.h"
+#include "host/include/generic/host/atomic128-ldst.h.inc"
 #endif
 
 #endif /* X86_64_ATOMIC128_LDST_H */
index baa506b7b5b145a11d7fffa39f9951fcdd175e60..b837c37868432b51f4e960e3e1463af704b76237 100644 (file)
@@ -9,7 +9,7 @@
 #define X86_64_LOAD_EXTRACT_AL16_AL8_H
 
 #ifdef CONFIG_INT128_TYPE
-#include "host/atomic128-ldst.h"
+#include "host/atomic128-ldst.h.inc"
 
 /**
  * load_atom_extract_al16_or_al8:
index 03c27022f0cf8d8cff2c46cf433b2af94572531a..448fb6447997665838464b8e657771b68b3382fe 100644 (file)
@@ -59,6 +59,6 @@
  */
 
 #include "host/atomic128-cas.h.inc"
-#include "host/atomic128-ldst.h"
+#include "host/atomic128-ldst.h.inc"
 
 #endif /* QEMU_ATOMIC128_H */