]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: bootstage: correct bootstage_report guard
authorChanho Park <chanho61.park@samsung.com>
Wed, 6 Sep 2023 05:18:12 +0000 (14:18 +0900)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 4 Oct 2023 09:55:17 +0000 (17:55 +0800)
commit9bcf9e49a24e1cd96565b8ccd40b23ab956c3376
tree9e9c2c4c26a477d5bb5f1d1aaa883a3b63f4cc4b
parent65b9b3462bec2966911658836983819ab4e4823e
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>
arch/riscv/lib/bootm.c