Hi Weijie

Thanks for fixing this :)

On Tue, 2025-04-29 at 10:04 +0800, Weijie Gao wrote:
> CONFIG_SYS_NONCACHED_MEMORY is defined as hex, not bool. It should be
> replaced with CONFIG_SYS_HAS_NONCACHED_MEMORY when switched from #ifdef to
> CONFIG_IS_ENABLED().
> 
> Fixes: 6c171f7a184 (common: board: make initcalls static)
> Signed-off-by: Weijie Gao <weijie....@mediatek.com>

Tested-by: Marcel Ziswiler <marcel.ziswi...@codethink.co.uk> # rock5b

> ---
>  common/board_r.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/board_r.c b/common/board_r.c
> index bc6fd6448c2..b90a4d9ff69 100644
> --- a/common/board_r.c
> +++ b/common/board_r.c
> @@ -639,7 +639,7 @@ static void initcall_run_r(void)
>  #if CONFIG_IS_ENABLED(CONSOLE_RECORD)
>       INITCALL(console_record_init);
>  #endif
> -#if CONFIG_IS_ENABLED(SYS_NONCACHED_MEMORY)
> +#if CONFIG_IS_ENABLED(SYS_HAS_NONCACHED_MEMORY)
>       INITCALL(noncached_init);
>  #endif
>       INITCALL(initr_of_live);

Cheers

Marcel

Reply via email to