public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning
@ 2012-03-29  7:24 Anatolij Gustschin
  2012-03-29 10:28 ` Marek Vasut
  2012-03-30 20:19 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2012-03-29  7:24 UTC (permalink / raw)
  To: u-boot

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

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

end of thread, other threads:[~2012-03-30 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29  7:24 [U-Boot] [PATCH] drivers/mmc/mmc.c: Fix build warning Anatolij Gustschin
2012-03-29 10:28 ` Marek Vasut
2012-03-30 20:19 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox