From 96da37dc48f25bb9e2b199dd9b4d7a12cb65d80d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 3 Jun 2019 13:13:17 -0600 Subject: [PATCH] include/nuttx/wqueue.h: Allow definitions even if work queues are not enabled. This solves build failures when work queues are not enabled. --- include/nuttx/wqueue.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/nuttx/wqueue.h b/include/nuttx/wqueue.h index 0b495ae4a3..e9f1e885d9 100644 --- a/include/nuttx/wqueue.h +++ b/include/nuttx/wqueue.h @@ -53,7 +53,9 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ + /* Configuration ************************************************************/ + /* CONFIG_SCHED_WORKQUEUE. Not selectable. Set by the configuration system * if either CONFIG_SCHED_HPWORK or CONFIG_SCHED_LPWORK are selected. * CONFIG_SCHED_HPWORK. Create a dedicated "worker" thread to @@ -134,8 +136,6 @@ # undef CONFIG_LIB_USRWORK #endif -#if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_LIB_USRWORK) - /* High priority, kernel work queue configuration ***************************/ #ifdef CONFIG_SCHED_HPWORK @@ -580,5 +580,4 @@ void work_notifier_signal(enum work_evtype_e evtype, #endif #endif /* __ASSEMBLY__ */ -#endif /* CONFIG_SCHED_WORKQUEUE || CONFIG_LIB_USRWORK */ #endif /* __INCLUDE_NUTTX_WQUEUE_H */