9
0
Fork 0

fix: commands/bootm.c:346:2: warning: statement with no effect

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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2011-07-16 12:42:01 +02:00 committed by Sascha Hauer
parent 5ca80c43a5
commit 72685fe9e8
1 changed files with 8 additions and 2 deletions

View File

@ -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 */