[U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning

Marek Vasut marex at denx.de
Thu Mar 29 12:28:35 CEST 2012


Dear Anatolij Gustschin,

> Fix:
> mmc.c: In function 'mmc_bounce_buffer_start':
> mmc.c:132:13: warning: no return statement in function returning
> non-void [-Wreturn-type]
> 
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> Cc: Andy Fleming <afleming at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
> ---
> Note: This appears when building with merged u-boot-arm.git master.
> 
>  drivers/mmc/mmc.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
> index 74e5fea..e70fa9f 100644
> --- a/drivers/mmc/mmc.c
> +++ b/drivers/mmc/mmc.c
> @@ -129,7 +129,7 @@ static void mmc_bounce_buffer_stop(struct mmc_data
> *backup, }
>  #else
>  static inline int mmc_bounce_buffer_start(struct mmc_data *backup,
> -					struct mmc_data *orig) { }
> +					struct mmc_data *orig) { return 0; }
>  static inline void mmc_bounce_buffer_stop(struct mmc_data *backup,
>  					struct mmc_data *orig) { }
>  #endif

Dang :/

Acked-by: Marek Vasut <marex at denx.de>

Best regards,
Marek Vasut


More information about the U-Boot mailing list