Re: [PATCH v2 1/3] riscv: bootstage: correct bootstage_report guard

Leo Liang
2023-09-04T06:43:07Z

On Mon, Aug 28, 2023 at 06:49:36PM +0900, Chanho Park wrote:
> 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>
> ---
> arch/riscv/lib/bootm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>