aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-05 23:41:58 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-14 00:16:20 +0100
commit456b247eeab067095b680fa4b0fec48137969593 (patch)
treedbbe65a4c69f8af5b02104c27da114adee5f75c7
parentccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d (diff)
downloadqemu-456b247eeab067095b680fa4b0fec48137969593.zip
qemu-456b247eeab067095b680fa4b0fec48137969593.tar.gz
qemu-456b247eeab067095b680fa4b0fec48137969593.tar.bz2
hw/xtensa: Include missing 'exec/tswap.h' header
Some files indirectly get "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: hw/xtensa/bootparam.h:40:16: error: call to undeclared function 'tswap16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | .tag = tswap16(tag), | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241211230357.97036-9-philmd@linaro.org>
-rw-r--r--hw/xtensa/bootparam.h1
-rw-r--r--hw/xtensa/xtfpga.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/xtensa/bootparam.h b/hw/xtensa/bootparam.h
index f57ff85..4418c78 100644
--- a/hw/xtensa/bootparam.h
+++ b/hw/xtensa/bootparam.h
@@ -2,6 +2,7 @@
#define HW_XTENSA_BOOTPARAM_H
#include "exec/cpu-common.h"
+#include "exec/tswap.h"
#define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/
#define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */
diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c
index 398e625..2e264c6 100644
--- a/hw/xtensa/xtfpga.c
+++ b/hw/xtensa/xtfpga.c
@@ -35,6 +35,7 @@
#include "hw/qdev-properties.h"
#include "elf.h"
#include "exec/memory.h"
+#include "exec/tswap.h"
#include "hw/char/serial-mm.h"
#include "net/net.h"
#include "hw/sysbus.h"