From: Patrick DELAUNAY Date: Tue, 13 Oct 2020 12:18:51 +0000 Subject: [PATCH] SPL: stm32mp1: fix spl_mmc_boot_partition not defined In-Reply-To: <20201012141109.29778-1-richard.genoud@posteo.net> References: <20201012141109.29778-1-richard.genoud@posteo.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Richard, > From: Richard Genoud > 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 > --- > arch/arm/mach-stm32mp/spl.c | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Patrick Delaunay Thanks for this missing check in spl. NB: after check, it is possible to IS_ENABLED to prevent #ifdef here :0: warning: Use 'if (IS_ENABLED(CONFIG...))' instead of '#if or #ifdef' where possible Patrick