[PATCH] SPL: stm32mp1: fix spl_mmc_boot_partition not defined
Patrick DELAUNAY
patrick.delaunay at st.com
Tue Oct 13 14:18:51 CEST 2020
Hi Richard,
> From: Richard Genoud <richard.genoud at posteo.net>
> Sent: lundi 12 octobre 2020 16:11
>
> spl_mmc_boot_partition is only defined when
> CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION is defined.
>
> Signed-off-by: Richard Genoud <richard.genoud at posteo.net>
> ---
> arch/arm/mach-stm32mp/spl.c | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>
Thanks for this missing check in spl.
NB: after check, it is possible to IS_ENABLED to prevent #ifdef here
<unknown>:0: warning: Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible
Patrick
More information about the U-Boot
mailing list