mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fix: commands/bootm.c:346:2: warning: statement with no effect
@ 2011-07-16 10:42 Jean-Christophe PLAGNIOL-VILLARD
  2011-07-18  6:26 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-07-16 10:42 UTC (permalink / raw)
  To: barebox

convert enable_interrupts() and disable_interrupts() to static inline
if no IRQ supoprt enable

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 include/common.h |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/common.h b/include/common.h
index 491bc98..f3353c8 100644
--- a/include/common.h
+++ b/include/common.h
@@ -116,8 +116,14 @@ void	irq_free_handler   (int);
 void	enable_interrupts  (void);
 int	disable_interrupts (void);
 #else
-#define enable_interrupts() do {} while (0)
-#define disable_interrupts() 0
+static inline void enable_interrupts(void)
+{
+}
+
+static inline int disable_interrupts(void)
+{
+	return 0;
+}
 #endif
 
 /* lib_$(ARCH)/time.c */
-- 
1.7.5.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2011-07-18  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-16 10:42 [PATCH] fix: commands/bootm.c:346:2: warning: statement with no effect Jean-Christophe PLAGNIOL-VILLARD
2011-07-18  6:26 ` Sascha Hauer

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