mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
note_driver.c: fix warning
CC: note/note_driver.c note/note_driver.c:180:19: warning: 'g_note_lock' defined but not used [-Wunused-variable]
180 | static spinlock_t g_note_lock;
|
This commit is contained in:
@@ -177,7 +177,10 @@ FAR static struct note_driver_s *
|
|||||||
static struct note_taskname_s g_note_taskname;
|
static struct note_taskname_s g_note_taskname;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_SCHED_INSTRUMENTATION_FILTER) || \
|
||||||
|
(CONFIG_DRIVERS_NOTE_TASKNAME_BUFSIZE > 0)
|
||||||
static spinlock_t g_note_lock;
|
static spinlock_t g_note_lock;
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
@@ -1892,7 +1895,7 @@ void sched_note_filter_irq(FAR struct note_filter_irq_s *oldf,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
# ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
|
#ifdef CONFIG_SCHED_INSTRUMENTATION_DUMP
|
||||||
void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
|
void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
|
||||||
FAR struct note_filter_tag_s *newf)
|
FAR struct note_filter_tag_s *newf)
|
||||||
{
|
{
|
||||||
@@ -1916,7 +1919,7 @@ void sched_note_filter_tag(FAR struct note_filter_tag_s *oldf,
|
|||||||
|
|
||||||
spin_unlock_irqrestore_wo_note(&g_note_lock, falgs);
|
spin_unlock_irqrestore_wo_note(&g_note_lock, falgs);
|
||||||
}
|
}
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_SCHED_INSTRUMENTATION_FILTER */
|
#endif /* CONFIG_SCHED_INSTRUMENTATION_FILTER */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user