Skip to content

Commit 1560696

Browse files
philmdrth7680
authored andcommitted
qemu/atomic: Rename atomic128-cas.h headers using .h.inc suffix
Since commit 139c183 ("meson: rename included C source files to .c.inc"), QEMU standard procedure for included C files is to use *.c.inc. Besides, since commit 6a0057a ("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é <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-ID: <[email protected]>
1 parent b73f584 commit 1560696

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

host/include/aarch64/host/atomic128-cas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* Through gcc 10, aarch64 has no support for 128-bit atomics. */
1515
#if defined(CONFIG_ATOMIC128) || defined(CONFIG_CMPXCHG128)
16-
#include "host/include/generic/host/atomic128-cas.h"
16+
#include "host/include/generic/host/atomic128-cas.h.inc"
1717
#else
1818
static inline Int128 atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new)
1919
{

include/qemu/atomic128.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* Therefore, special case each platform.
5959
*/
6060

61-
#include "host/atomic128-cas.h"
61+
#include "host/atomic128-cas.h.inc"
6262
#include "host/atomic128-ldst.h"
6363

6464
#endif /* QEMU_ATOMIC128_H */

0 commit comments

Comments
 (0)