[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 06/36] hw/mips/loongson3_bootp: Include missing headers
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 06/36] hw/mips/loongson3_bootp: Include missing headers |
Date: |
Fri, 31 Jan 2025 22:04:49 +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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250115232952.31166-6-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
- [PULL 00/36] Misc HW patches for 2025-01-31, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 01/36] hw/rx/rx-gdbsim: Remove unnecessary uses of &first_cpu, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 02/36] hw/mips/loongson3_virt: Factor generic_cpu_reset() out, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 03/36] hw/mips/loongson3_virt: Invert vCPU creation order to remove &first_cpu, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 04/36] hw/mips/loongson3_virt: Have fw_conf_init() access local loaderparams, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 05/36] hw/mips/loongson3_virt: Pass CPU argument to get_cpu_freq_hz(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 06/36] hw/mips/loongson3_bootp: Include missing headers,
Philippe Mathieu-Daudé <=
- [PULL 07/36] hw/mips/loongson3: Propagate cpu_count to init_loongson_params(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 08/36] hw/mips/loongson3_virt: Propagate cpu_count to init_boot_param(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 09/36] hw/mips/loongson3_bootp: Propagate processor_id to init_cpu_info(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 10/36] hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 11/36] hw/mips/loongson3_virt: Propagate %processor_id to init_boot_param(), Philippe Mathieu-Daudé, 2025/01/31
- [PULL 12/36] hw/mips/loongson3_bootp: Move to common_ss[], Philippe Mathieu-Daudé, 2025/01/31
- [PULL 13/36] hw/irq: Introduce qemu_init_irqs() helper, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 14/36] hw/ipack: Clarify KConfig symbols, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 15/36] hw/ipack: Remove legacy qemu_allocate_irqs() use, Philippe Mathieu-Daudé, 2025/01/31
- [PULL 16/36] hw/sh4/r2d: Convert legacy qemu_allocate_irqs() to qemu_init_irqs(), Philippe Mathieu-Daudé, 2025/01/31