arm: imx: imx8m: soc: fix the macro name
Subsystems (3)
PATCH 1/1 arm: imx: imx8m: soc: fix the macro name
From: Michael Trimarchi <[email protected]>
The function arch_spl_mmc_get_uboot_raw_sector() was never compiled, even when the option CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION was enabled. So rename the macro SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION to CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION.
---
arch/arm/mach-imx/imx8m/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-imx/imx8m/soc.c +2 -2
@@ -791,7 +791,7 @@ int boot_mode_getprisec(void)#endif #if defined(CONFIG_IMX8MN ) || defined(CONFIG_IMX8MP ) -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION #define IMG_CNTN_SET1_OFFSET GENMASK(22, 19)unsigned long arch_spl_mmc_get_uboot_raw_sector (struct mmc *mmc,unsigned long raw_sect)
@@ -826,7 +826,7 @@ unsigned long arch_spl_mmc_get_uboot_raw_sector(struct mmc *mmc,return raw_sect; } -#endif /* SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */ +#endif /* CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION */ #endif bool is_usb_boot (void )
Signature · 4 lines
2.43.0 base-commit: 1b5e435102aa29a665119430196cb366ce36a01b branch: fix-SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Hi Dario,
Quoted 21 lines · Dario Binacchi
From: Michael Trimarchi <[email protected]>
The function
arch_spl_mmc_get_uboot_raw_sector()was never compiled, even when the optionCONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITIONwas enabled. So rename the macroSYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITIONtoCONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION.Fixes 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options")Signed-off-by Michael Trimarchi <[email protected]>Signed-off-by Dario Binacchi <[email protected]>---
arch/arm/mach-imx/imx8m/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-imx/imx8m/soc.c +0
-0
arch/arm/mach-imx/imx8m/soc.c int boot_mode_getprisec(void) · line 794
Quoted 5 lines
arch/arm/mach-imx/imx8m/soc.c +1
-1@@ -791,7 +791,7 @@ int boot_mode_getprisec(void)#endif #if defined(CONFIG_IMX8MN ) || defined(CONFIG_IMX8MP ) -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
Maybe a good opportunity to switch to
#if IS_ENABLED(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION)
?
I had a random idea but I'm wondering if there's a way we could check all symbols listed in IS_ENABLED/CONFIG_IS_ENABLED and check they actually exist in Kconfig somewhere? This would not have caught this one since we were using #ifdef but wondering if it could help with migrations/renaming?
Thanks!
Quentin
Quoted 31 lines · Quentin Schulz
Hi Dario,
Quoted 21 lines · Dario Binacchi
From: Michael Trimarchi <[email protected]>
The function
arch_spl_mmc_get_uboot_raw_sector()was never compiled, even when the optionCONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITIONwas enabled. So rename the macroSYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITIONtoCONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION.Fixes 2a00d73d081a ("spl: mmc: Try to clean up raw-mode options")Signed-off-by Michael Trimarchi <[email protected]>Signed-off-by Dario Binacchi <[email protected]>---
arch/arm/mach-imx/imx8m/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/arm/mach-imx/imx8m/soc.c +0
-0arch/arm/mach-imx/imx8m/soc.c int boot_mode_getprisec(void) · line 793
Quoted 4 lines
arch/arm/mach-imx/imx8m/soc.c +1
-1@@ -791,7 +791,7 @@ int boot_mode_getprisec(void)#endif #if defined(CONFIG_IMX8MN ) || defined(CONFIG_IMX8MP ) -#ifdef SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION +#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION Maybe a good opportunity to switch to
Quoted 1 line
#if
IS_ENABLED(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION)
I honestly don't know if that's more readable, but don't strongly care.
Quoted 8 lines
?
Reviewed-by Quentin Schulz <[email protected]>I had a random idea but I'm wondering if there's a way we could check all symbols listed in IS_ENABLED/CONFIG_IS_ENABLED and check they actually exist in
Kconfigsomewhere? This would not have caught this one since we were using #ifdef but wondering if it could help with migrations/renaming?
I think that might be something tools/qconfig.py --scan-source prints out about, but the output then requires manual investigation. I also *think* it missed one set of cases, but I've added a checkpatch.pl change to be louder about it.
Signature · 1 line
Tom