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:
Abdelatif Guettouche 2021-09-11 14:07:11 +02:00 committed by Masayuki Ishikawa
parent 31aa616bf2
commit 083272ad92

View File

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