diff options
| author | Bin Meng <[email protected]> | 2023-02-23 18:40:06 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2023-02-27 09:59:01 +0530 |
| commit | 321293c6443ea55e2fcb17975ebc498dcbcb7290 (patch) | |
| tree | 42368004d884263a869c4e8e720fb5bfc1177a8d | |
| parent | 65c2190b47b14341dac9f763fed2d4ecbbff2a69 (diff) | |
lib: utils/fdt: Fix fdt_pmu.c header dependency
The code calls sbi_scratch_thishart_ptr() from sbi_scratch.h which
is not directly included. Fix such dependency.
Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
| -rw-r--r-- | lib/utils/fdt/fdt_pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/fdt/fdt_pmu.c b/lib/utils/fdt/fdt_pmu.c index 4829f212..83301bb5 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) |
