From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 29 Mar 2012 12:28:35 +0200 Subject: [U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning In-Reply-To: <1333005872-4325-1-git-send-email-agust@denx.de> References: <1333005872-4325-1-git-send-email-agust@denx.de> Message-ID: <201203291228.35947.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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 > Cc: Andy Fleming > Cc: Marek Vasut > --- > 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 Best regards, Marek Vasut