From 9f4e063646832c1d5701ea4ac044b6c298d7a4c0 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Thu, 11 Aug 2022 17:25:44 +0800 Subject: [PATCH] fix warning --- osal/usb_workq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osal/usb_workq.c b/osal/usb_workq.c index 3d615e50..99dfd112 100644 --- a/osal/usb_workq.c +++ b/osal/usb_workq.c @@ -44,6 +44,7 @@ void usb_workqueue_submit(struct usb_workqueue *queue, struct usb_work *work, us struct usb_workqueue g_hpworkq = { NULL }; struct usb_workqueue g_lpworkq = { NULL }; +#ifdef CONFIG_USBHOST_HIGH_WORKQ static void usbh_hpwork_thread(void *argument) { struct usb_work *work; @@ -66,7 +67,8 @@ static void usbh_hpwork_thread(void *argument) work->worker(work->arg); } } - +#endif +#ifdef CONFIG_USBHOST_LOW_WORKQ static void usbh_lpwork_thread(void *argument) { struct usb_work *work; @@ -89,6 +91,7 @@ static void usbh_lpwork_thread(void *argument) work->worker(work->arg); } } +#endif int usbh_workq_initialize(void) {