From a553bd6d68a9f37a7194e9bb03027fa3e511f2e2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 29 Oct 2023 16:13:21 -0400 Subject: lib: Move workqueue private functions into workqueue.c Some Functions are not used outside of workqueue.c. Move them inside of workqueue.c to limit scope. Signed-off-by: Donald Sharp --- lib/workqueue.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/workqueue.h') diff --git a/lib/workqueue.h b/lib/workqueue.h index 5d84739d5c..8b340ce532 100644 --- a/lib/workqueue.h +++ b/lib/workqueue.h @@ -117,22 +117,6 @@ work_queue_last_item(struct work_queue *wq) return STAILQ_LAST(&wq->items, work_queue_item, wq); } -static inline void work_queue_item_enqueue(struct work_queue *wq, - struct work_queue_item *item) -{ - STAILQ_INSERT_TAIL(&wq->items, item, wq); - wq->item_count++; -} - -static inline void work_queue_item_dequeue(struct work_queue *wq, - struct work_queue_item *item) -{ - assert(wq->item_count > 0); - - wq->item_count--; - STAILQ_REMOVE(&wq->items, item, work_queue_item, wq); -} - /* create a new work queue, of given name. * user must fill in the spec of the returned work queue before adding * anything to it -- cgit v1.2.3