spinlock.h: In single CPU case force the lock passed to
spin_lock_irqsave to be unused in the macro to avoid spreading UNUSED() or void throughout the code base. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
31aa616bf2
commit
083272ad92
@ -389,7 +389,7 @@ void spin_clrbit(FAR volatile cpu_set_t *set, unsigned int cpu,
|
||||
#if defined(CONFIG_SMP)
|
||||
irqstate_t spin_lock_irqsave(spinlock_t *lock);
|
||||
#else
|
||||
# define spin_lock_irqsave(l) up_irq_save()
|
||||
# define spin_lock_irqsave(l) ((void)(l), up_irq_save())
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user