[PATCH v3 1/4] lib: utils/fdt: Fix fdt_pmu.c header dependency
Bin Meng
bmeng at tinylab.org
Thu Feb 23 02:40:06 PST 2023
The code calls sbi_scratch_thishart_ptr() from sbi_scratch.h which
is not directly included. Fix such dependency.
Signed-off-by: Bin Meng <bmeng at tinylab.org>
---
lib/utils/fdt/fdt_pmu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/utils/fdt/fdt_pmu.c b/lib/utils/fdt/fdt_pmu.c
index 4829f21..83301bb 100644
--- a/lib/utils/fdt/fdt_pmu.c
+++ b/lib/utils/fdt/fdt_pmu.c
@@ -12,6 +12,7 @@
#include <sbi/sbi_hart.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_pmu.h>
+#include <sbi/sbi_scratch.h>
#include <sbi_utils/fdt/fdt_helper.h>
#define FDT_PMU_HW_EVENT_MAX (SBI_PMU_HW_EVENT_MAX * 2)
--
2.25.1
More information about the opensbi
mailing list