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:
parent
5ca80c43a5
commit
72685fe9e8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue