diff options
author | Chanho Park <chanho61.park@samsung.com> | 2023-09-06 14:18:12 +0900 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2023-10-04 17:55:17 +0800 |
commit | 9bcf9e49a24e1cd96565b8ccd40b23ab956c3376 (patch) | |
tree | 9e9c2c4c26a477d5bb5f1d1aaa883a3b63f4cc4b /arch/riscv/lib | |
parent | 65b9b3462bec2966911658836983819ab4e4823e (diff) | |
download | u-boot-9bcf9e49a24e1cd96565b8ccd40b23ab956c3376.zip u-boot-9bcf9e49a24e1cd96565b8ccd40b23ab956c3376.tar.gz u-boot-9bcf9e49a24e1cd96565b8ccd40b23ab956c3376.tar.bz2 |
riscv: bootstage: correct bootstage_report guard
Below warning can be occurred when CONFIG_BOOTSTAGE and
!CONFIG_SPL_BOOTSTAGE. It should be guarded by using CONFIG_IS_ENABLED
for SPL build.
arch/riscv/lib/bootm.c:46:9: warning: implicit declaration of
function 'bootstage_report'
46 | bootstage_report();
| ^~~~~~~~~~~~~~~~
| bootstage_error
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch/riscv/lib')
-rw-r--r-- | arch/riscv/lib/bootm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/bootm.c b/arch/riscv/lib/bootm.c index 276677a..cc30efc 100644 --- a/arch/riscv/lib/bootm.c +++ b/arch/riscv/lib/bootm.c @@ -42,7 +42,7 @@ static void announce_and_cleanup(int fake) #ifdef CONFIG_BOOTSTAGE_FDT bootstage_fdt_add_report(); #endif -#ifdef CONFIG_BOOTSTAGE_REPORT +#if CONFIG_IS_ENABLED(BOOTSTAGE_REPORT) bootstage_report(); #endif |