[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 7/9] hw/sh4/r2d: Include missing 'exec/tswap.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 7/9] hw/sh4/r2d: Include missing 'exec/tswap.h' header |
Date: |
Thu, 12 Dec 2024 00:03:55 +0100 |
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é <philmd@linaro.org>
---
hw/sh4/r2d.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/sh4/r2d.c b/hw/sh4/r2d.c
index 7eecd79fcc1..e6cc156c238 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)
--
2.45.2
- [PATCH v2 2/9] target/mips: Remove tswap() calls in semihosting uhi_fstat_cb(), (continued)
- [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é, 2024/12/11
- [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é <=
- [PATCH v2 8/9] hw/xtensa: Include missing 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11
- [PATCH v2 9/9] exec/cpu-all: Do not include 'exec/tswap.h' header, Philippe Mathieu-Daudé, 2024/12/11