mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 12:08:36 +08:00
spinlock: fix unused parameter
fix unused parameter if unlock spinlock from different function Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
3374e82c4c
commit
500ebd6498
2 changed files with 5 additions and 5 deletions
|
@ -589,7 +589,7 @@ irqstate_t spin_lock_irqsave_wo_note(FAR spinlock_t *lock);
|
||||||
#if defined(CONFIG_SPINLOCK)
|
#if defined(CONFIG_SPINLOCK)
|
||||||
void spin_unlock_irqrestore(FAR spinlock_t *lock, irqstate_t flags);
|
void spin_unlock_irqrestore(FAR spinlock_t *lock, irqstate_t flags);
|
||||||
#else
|
#else
|
||||||
# define spin_unlock_irqrestore(l, f) up_irq_restore(f)
|
# define spin_unlock_irqrestore(l, f) ((void)(l), up_irq_restore(f))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -599,7 +599,7 @@ void spin_unlock_irqrestore(FAR spinlock_t *lock, irqstate_t flags);
|
||||||
#if defined(CONFIG_SPINLOCK)
|
#if defined(CONFIG_SPINLOCK)
|
||||||
void spin_unlock_irqrestore_wo_note(FAR spinlock_t *lock, irqstate_t flags);
|
void spin_unlock_irqrestore_wo_note(FAR spinlock_t *lock, irqstate_t flags);
|
||||||
#else
|
#else
|
||||||
# define spin_unlock_irqrestore_wo_note(l, f) up_irq_restore(f)
|
# define spin_unlock_irqrestore_wo_note(l, f) ((void)(l), up_irq_restore(f))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_RW_SPINLOCK)
|
#if defined(CONFIG_RW_SPINLOCK)
|
||||||
|
@ -914,7 +914,7 @@ irqstate_t read_lock_irqsave(FAR rwlock_t *lock);
|
||||||
#if defined(CONFIG_SPINLOCK)
|
#if defined(CONFIG_SPINLOCK)
|
||||||
void read_unlock_irqrestore(FAR rwlock_t *lock, irqstate_t flags);
|
void read_unlock_irqrestore(FAR rwlock_t *lock, irqstate_t flags);
|
||||||
#else
|
#else
|
||||||
# define read_unlock_irqrestore(l, f) up_irq_restore(f)
|
# define read_unlock_irqrestore(l, f) ((void)(l), up_irq_restore(f))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
@ -988,7 +988,7 @@ irqstate_t write_lock_irqsave(FAR rwlock_t *lock);
|
||||||
#if defined(CONFIG_SPINLOCK)
|
#if defined(CONFIG_SPINLOCK)
|
||||||
void write_unlock_irqrestore(FAR rwlock_t *lock, irqstate_t flags);
|
void write_unlock_irqrestore(FAR rwlock_t *lock, irqstate_t flags);
|
||||||
#else
|
#else
|
||||||
# define write_unlock_irqrestore(l, f) up_irq_restore(f)
|
# define write_unlock_irqrestore(l, f) ((void)(l), up_irq_restore(f))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_RW_SPINLOCK */
|
#endif /* CONFIG_RW_SPINLOCK */
|
||||||
|
|
|
@ -196,7 +196,7 @@ void spin_unlock_irqrestore(spinlock_t *lock, irqstate_t flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: spin_lock_irqsave_wo_note
|
* Name: spin_unlock_irqrestore_wo_note
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void spin_unlock_irqrestore_wo_note(spinlock_t *lock, irqstate_t flags)
|
void spin_unlock_irqrestore_wo_note(spinlock_t *lock, irqstate_t flags)
|
||||||
|
|
Loading…
Reference in a new issue