diff --git a/include/nuttx/irq.h b/include/nuttx/irq.h index 28264b7f57..e33815fb48 100644 --- a/include/nuttx/irq.h +++ b/include/nuttx/irq.h @@ -46,7 +46,6 @@ #ifndef __ASSEMBLY__ # include # include -# include #endif /**************************************************************************** @@ -203,7 +202,7 @@ int irqchain_detach(int irq, xcpt_t isr, FAR void *arg); #ifdef CONFIG_IRQCOUNT irqstate_t enter_critical_section(void); #else -# define enter_critical_section(f) up_irq_save(f) +# define enter_critical_section() up_irq_save() #endif /**************************************************************************** @@ -265,7 +264,7 @@ void leave_critical_section(irqstate_t flags); defined(CONFIG_ARCH_GLOBAL_IRQDISABLE) irqstate_t spin_lock_irqsave(void); #else -# define spin_lock_irqsave(f) enter_critical_section(f) +# define spin_lock_irqsave() enter_critical_section() #endif /****************************************************************************