summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-08-11 17:25:44 +0800
committersakumisu <[email protected]>2022-08-11 17:25:44 +0800
commit9f4e063646832c1d5701ea4ac044b6c298d7a4c0 (patch)
tree646a3064780e52e4957fdc31aa74fe8053217ca3
parent50ec3651c08073367406921e2ed7fa4ff4c1a567 (diff)
fix warning
-rw-r--r--osal/usb_workq.c5
1 files changed, 4 insertions, 1 deletions
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)
{