]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/xtensa: Include missing 'exec/tswap.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 5 Dec 2024 22:41:58 +0000 (23:41 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Dec 2024 23:16:20 +0000 (00:16 +0100)
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>

hw/xtensa/bootparam.h
hw/xtensa/xtfpga.c

index f57ff850bcbdd4e856437868132623e9fd3ba968..4418c78d5bb8753ea98715287d398d34f737e359 100644 (file)
@@ -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) */
index 398e6256e1de37b22b7de973174aa0cb4841c8c6..2e264c61988ee0eb687188debbd4c38501a93fb3 100644 (file)
@@ -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"