[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/9] accel/tcg: Include missing 'exec/tswap.h' header in trans
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 3/9] accel/tcg: Include missing 'exec/tswap.h' header in translator.c |
Date: |
Thu, 12 Dec 2024 00:03:51 +0100 |
translator.c indirectly gets "exec/tswap.h" declarations via
"exec/cpu-all.h". Include it directly to be able to remove the
former from the latter, otherwise we get:
accel/tcg/translator.c:433:15: error: call to undeclared function 'tswap16';
ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
433 | tgt = tswap16(raw);
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
accel/tcg/translator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index cbad00a5172..ff5dabc9014 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -15,6 +15,7 @@
#include "exec/cpu_ldst.h"
#include "exec/plugin-gen.h"
#include "exec/cpu_ldst.h"
+#include "exec/tswap.h"
#include "tcg/tcg-op-common.h"
#include "internal-target.h"
#include "disas/disas.h"
--
2.45.2
- [PATCH v2 0/9] misc: Reduce 'exec/tswap.h' inclusions, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 1/9] target/xtensa: Remove tswap() calls in semihosting simcall() helper, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 2/9] target/mips: Remove tswap() calls in semihosting uhi_fstat_cb(), Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 3/9] accel/tcg: Include missing 'exec/tswap.h' header in translator.c,
Philippe Mathieu-Daudé <=
- [PATCH v2 4/9] hw/arm: Include missing 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 5/9] hw/ppc: Include missing 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 6/9] hw/mips: Include missing 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 7/9] hw/sh4/r2d: Include missing 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11