[PATCH v3 2/4] platform: generic/allwinner: Fix sun20i-d1.c header dependency
Bin Meng
bmeng at tinylab.org
Thu Feb 23 02:40:07 PST 2023
The code calls various macros from riscv_asm.h and sbi_scratch.h
which are not directly included. Fix such dependency.
Signed-off-by: Bin Meng <bmeng at tinylab.org>
---
platform/generic/allwinner/sun20i-d1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/platform/generic/allwinner/sun20i-d1.c b/platform/generic/allwinner/sun20i-d1.c
index 295c159..0f0a9f3 100644
--- a/platform/generic/allwinner/sun20i-d1.c
+++ b/platform/generic/allwinner/sun20i-d1.c
@@ -6,12 +6,14 @@
#include <platform_override.h>
#include <thead_c9xx.h>
+#include <sbi/riscv_asm.h>
#include <sbi/riscv_io.h>
#include <sbi/sbi_bitops.h>
#include <sbi/sbi_ecall_interface.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_hsm.h>
#include <sbi/sbi_pmu.h>
+#include <sbi/sbi_scratch.h>
#include <sbi_utils/fdt/fdt_fixup.h>
#include <sbi_utils/fdt/fdt_helper.h>
#include <sbi_utils/irqchip/fdt_irqchip_plic.h>
--
2.25.1
More information about the opensbi
mailing list