From: Philippe Mathieu-Daudé Date: Thu, 5 Dec 2024 22:42:49 +0000 (+0100) Subject: hw/sh4/r2d: Include missing 'exec/tswap.h' header X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d;p=qemu.git hw/sh4/r2d: Include missing 'exec/tswap.h' header r2d.c 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/sh4/r2d.c:357:35: error: call to undeclared function 'tswap32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 357 | boot_params.loader_type = tswap32(1); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20241211230357.97036-8-philmd@linaro.org> --- diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c index 7eecd79fcc..e6cc156c23 100644 --- a/hw/sh4/r2d.c +++ b/hw/sh4/r2d.c @@ -43,6 +43,7 @@ #include "hw/loader.h" #include "hw/usb.h" #include "hw/block/flash.h" +#include "exec/tswap.h" #define FLASH_BASE 0x00000000 #define FLASH_SIZE (16 * MiB)