[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/11] hw/mips/loongson3_bootp: Include missing headers
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 05/11] hw/mips/loongson3_bootp: Include missing headers |
Date: |
Sun, 12 Jan 2025 22:58:29 +0100 |
MemMapEntry is declared in "exec/hwaddr.h", cpu_to_le32() in
"qemu/bswap.h". These headers are indirectly included via "cpu.h".
Include them explicitly in order to avoid when removing "cpu.h":
In file included from ../../hw/mips/loongson3_bootp.c:27:
hw/mips/loongson3_bootp.h:234:14: error: unknown type name 'MemMapEntry'
234 | extern const MemMapEntry virt_memmap[];
| ^
hw/mips/loongson3_bootp.c:33:18: error: call to undeclared function
'cpu_to_le32'; ISO C99 and later do not support implicit function declarations
[-Wimplicit-function-declaration]
33 | c->cputype = cpu_to_le32(Loongson_3A);
| ^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/mips/loongson3_bootp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/mips/loongson3_bootp.c b/hw/mips/loongson3_bootp.c
index b97b81903b7..712439c2575 100644
--- a/hw/mips/loongson3_bootp.c
+++ b/hw/mips/loongson3_bootp.c
@@ -21,6 +21,8 @@
#include "qemu/osdep.h"
#include "qemu/units.h"
#include "qemu/cutils.h"
+#include "qemu/bswap.h"
+#include "exec/hwaddr.h"
#include "cpu.h"
#include "hw/boards.h"
#include "hw/mips/loongson3_bootp.h"
--
2.47.1
- [PATCH 00/11] hw/mips/loongson3: Remove uses of &first_cpu global, Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 01/11] hw/mips/loongson3_virt: Factor generic_cpu_reset() out, Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 02/11] hw/mips/loongson3_virt: Keep reference of vCPUs in machine_init(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 03/11] hw/mips/loongson3_virt: Have fw_conf_init() access local loaderparams, Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 04/11] hw/mips/loongson3_virt: Pass CPU argument to get_cpu_freq_hz(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 05/11] hw/mips/loongson3_bootp: Include missing headers,
Philippe Mathieu-Daudé <=
- [PATCH 06/11] hw/mips/loongson3: Propagate cpu_count to init_loongson_params(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 07/11] hw/mips/loongson3_virt: Propagate cpu_count to init_boot_param(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 08/11] hw/mips/loongson3_bootp: Propagate processor_id to init_cpu_info(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 09/11] hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params(), Philippe Mathieu-Daudé, 2025/01/12
- [PATCH 10/11] hw/mips/loongson3_virt: Propagate %processor_id to init_boot_param(), Philippe Mathieu-Daudé, 2025/01/12