From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning
Date: Thu, 29 Mar 2012 12:28:35 +0200 [thread overview]
Message-ID: <201203291228.35947.marex@denx.de> (raw)
In-Reply-To: <1333005872-4325-1-git-send-email-agust@denx.de>
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@denx.de>
> Cc: Andy Fleming <afleming@gmail.com>
> Cc: Marek Vasut <marex@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@denx.de>
Best regards,
Marek Vasut
next prev parent reply other threads:[~2012-03-29 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 7:24 [U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning Anatolij Gustschin
2012-03-29 10:28 ` Marek Vasut [this message]
2012-03-30 20:19 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203291228.35947.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox