spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
PATCH 1/1 spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
When CONFIG_SPL_LIBCOMMON_SUPPORT is disabled, the last case statement is missing a proper statement, which makes the compiler whine.
--- common/spl/spl_mmc.c | 1 + 1 file changed, 1 insertion(+)
common/spl/spl_mmc.c +1 -0
@@ -343,6 +343,7 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,break ;case MMCSD_MODE_UNDEFINED : + ;#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT default :puts ("spl: mmc: wrong boot mode\n" );
Signature · 1 line
2.7.4
PATCH 1/1 spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
Quoted 14 lines · Yann E. MORIN
When
CONFIG_SPL_LIBCOMMON_SUPPORTis disabled, the last case statement is missing a proper statement, which makes the compiler whine.Signed-off-by "Yann E. MORIN" <[email protected]>Cc Pantelis Antoniou <[email protected]>--- common/spl/spl_mmc.c | 1 + 1 file changed, 1 insertion(+)common/spl/spl_mmc.c +0
-0
common/spl/spl_mmc.c static int spl_mmc_load_image(struct spl_image_info *spl_image, · line 349
Quoted 7 lines
common/spl/spl_mmc.c +1
-0@@ -343,6 +343,7 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,break ;case MMCSD_MODE_UNDEFINED : + ;#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT default :puts ("spl: mmc: wrong boot mode\n" );
I thought we had applied https://patchwork.ozlabs.org/patch/689910/
already but I see it hasn't. I do prefer that patch however.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161113/9449e899/attachment.sig>
PATCH 1/1 spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
In reply to Yann E. MORINHi,
Quoted 14 lines · Yann E. MORIN
When
CONFIG_SPL_LIBCOMMON_SUPPORTis disabled, the last case statement is missing a proper statement, which makes the compiler whine.Signed-off-by "Yann E. MORIN" <[email protected]>Cc Pantelis Antoniou <[email protected]>--- common/spl/spl_mmc.c | 1 + 1 file changed, 1 insertion(+)common/spl/spl_mmc.c +0
-0
common/spl/spl_mmc.c static int spl_mmc_load_image(struct spl_image_info *spl_image, · line 349
Quoted 7 lines
common/spl/spl_mmc.c +1
-0@@ -343,6 +343,7 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,break ;case MMCSD_MODE_UNDEFINED : + ;#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT default :puts ("spl: mmc: wrong boot mode\n" );
case MMCSD_MODE_UNDEFINED:
...
#ifdef CONFIG_....
default:
put() #endif break;
How about adding "break"?
Best Regards,
Jaehoon Chung
Quoted 1 line
PATCH 1/1 spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
Jaehoon, All,
On 2016-11-17 17:09 +0900, Jaehoon Chung spake thusly:
Quoted 27 lines · Yann E. MORIN
Quoted 14 lines
When
CONFIG_SPL_LIBCOMMON_SUPPORTis disabled, the last case statement is missing a proper statement, which makes the compiler whine.Signed-off-by "Yann E. MORIN" <[email protected]>Cc Pantelis Antoniou <[email protected]>--- common/spl/spl_mmc.c | 1 + 1 file changed, 1 insertion(+)common/spl/spl_mmc.c +0
-0common/spl/spl_mmc.c static int spl_mmc_load_image(struct spl_image_info *spl_image, · line 349
Quoted 7 lines
common/spl/spl_mmc.c +1
-0@@ -343,6 +343,7 @@ static int spl_mmc_load_image(struct spl_image_info *spl_image,break ;case MMCSD_MODE_UNDEFINED : + ;#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT default :puts ("spl: mmc: wrong boot mode\n" );case
MMCSD_MODE_UNDEFINED:
...
#ifdefCONFIG_....
default:
Quoted 6 lines
put() #endif break;How about adding "break"?
From what I understood, Tom Rini has another patch he preferred:
https://patchwork.ozlabs.org/patch/694196/ in which he pointed to: https://patchwork.ozlabs.org/patch/689910/
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'