summaryrefslogtreecommitdiff
path: root/components/drivers/src/workqueue.c
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-07-30 10:43:19 -0500
committerGitHub <[email protected]>2021-07-30 10:43:19 -0500
commit2589d245325d95f0291e27886f93644d1f762f53 (patch)
tree432e10f647be74abf9d6d58e131b0496bfae3fa3 /components/drivers/src/workqueue.c
parent19c5088bb8b6cfdc9e3cecc63b6f9c116a799c49 (diff)
parent56d3abe30148a07dd41d78e8aa190f9baa164266 (diff)
Merge branch 'master' into tz
Diffstat (limited to 'components/drivers/src/workqueue.c')
-rw-r--r--components/drivers/src/workqueue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/drivers/src/workqueue.c b/components/drivers/src/workqueue.c
index f195dad927..065c505015 100644
--- a/components/drivers/src/workqueue.c
+++ b/components/drivers/src/workqueue.c
@@ -358,7 +358,7 @@ rt_err_t rt_work_cancel(struct rt_work *work)
return rt_workqueue_cancel_work(sys_workq, work);
}
-int rt_work_sys_workqueue_init(void)
+static int rt_work_sys_workqueue_init(void)
{
if (sys_workq != RT_NULL)
return RT_EOK;
@@ -370,5 +370,5 @@ int rt_work_sys_workqueue_init(void)
return RT_EOK;
}
INIT_PREV_EXPORT(rt_work_sys_workqueue_init);
-#endif
-#endif
+#endif /* RT_USING_SYSTEM_WORKQUEUE */
+#endif /* RT_USING_HEAP */