All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
@ 2016-11-13 21:46 ` Yann E. MORIN
  2016-11-13 22:59   ` Tom Rini
  2016-11-17  8:09   ` Jaehoon Chung
  0 siblings, 2 replies; 4+ messages in thread
From: Yann E. MORIN @ 2016-11-13 21:46 UTC (permalink / raw)
  To: u-boot

When CONFIG_SPL_LIBCOMMON_SUPPORT is disabled, the last case statement
is missing a proper statement, which makes the compiler whine.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
---
 common/spl/spl_mmc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index c674e61..cc81d19 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -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");
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
  2016-11-13 21:46 ` [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT Yann E. MORIN
@ 2016-11-13 22:59   ` Tom Rini
  2016-11-17  8:09   ` Jaehoon Chung
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2016-11-13 22:59 UTC (permalink / raw)
  To: u-boot

On Sun, Nov 13, 2016 at 10:46:19PM +0100, Yann E. MORIN wrote:
> When CONFIG_SPL_LIBCOMMON_SUPPORT is disabled, the last case statement
> is missing a proper statement, which makes the compiler whine.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
> ---
>  common/spl/spl_mmc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> index c674e61..cc81d19 100644
> --- a/common/spl/spl_mmc.c
> +++ b/common/spl/spl_mmc.c
> @@ -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.

-- 
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>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
  2016-11-13 21:46 ` [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT Yann E. MORIN
  2016-11-13 22:59   ` Tom Rini
@ 2016-11-17  8:09   ` Jaehoon Chung
  2016-11-17 17:09     ` Yann E. MORIN
  1 sibling, 1 reply; 4+ messages in thread
From: Jaehoon Chung @ 2016-11-17  8:09 UTC (permalink / raw)
  To: u-boot

Hi,

On 11/14/2016 06:46 AM, Yann E. MORIN wrote:
> When CONFIG_SPL_LIBCOMMON_SUPPORT is disabled, the last case statement
> is missing a proper statement, which makes the compiler whine.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
> ---
>  common/spl/spl_mmc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> index c674e61..cc81d19 100644
> --- a/common/spl/spl_mmc.c
> +++ b/common/spl/spl_mmc.c
> @@ -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

> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT
  2016-11-17  8:09   ` Jaehoon Chung
@ 2016-11-17 17:09     ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2016-11-17 17:09 UTC (permalink / raw)
  To: u-boot

Jaehoon, All,

On 2016-11-17 17:09 +0900, Jaehoon Chung spake thusly:
> On 11/14/2016 06:46 AM, Yann E. MORIN wrote:
> > When CONFIG_SPL_LIBCOMMON_SUPPORT is disabled, the last case statement
> > is missing a proper statement, which makes the compiler whine.
> > 
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
> > ---
> >  common/spl/spl_mmc.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> > index c674e61..cc81d19 100644
> > --- a/common/spl/spl_mmc.c
> > +++ b/common/spl/spl_mmc.c
> > @@ -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"?

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.

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-17 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20161113214655epcas4p3a2ea71ae6e8470cac1996ee59d73563a@epcas4p3.samsung.com>
2016-11-13 21:46 ` [U-Boot] [PATCH] spl: mmc: fix build without CONFIG_SPL_LIBCOMMON_SUPPORT Yann E. MORIN
2016-11-13 22:59   ` Tom Rini
2016-11-17  8:09   ` Jaehoon Chung
2016-11-17 17:09     ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.