summaryrefslogtreecommitdiff
path: root/components/drivers/src/workqueue.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-07-23 17:37:01 +0800
committerGitHub <[email protected]>2021-07-23 17:37:01 +0800
commit2b201cbb00c512def085332d7fb09194656418b9 (patch)
tree6a293377c76708e64c733d382e784c77f952568f /components/drivers/src/workqueue.c
parentabf3db624f64ef896636f01b148dd10e717708e2 (diff)
parenta8ed7b776995598c7d4443735ed7dbdcb8bd967e (diff)
Merge pull request #4881 from mysterywolf/syswork
[workqueue] 将rt_work_sys_workqueue_init函数设为私有
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 */