aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2021-09-13 12:02:56 +0200
committerTejun Heo <tj@kernel.org>2021-09-13 07:53:27 -1000
commit80f0a1f99983296be587325004acf72dd11eccd8 (patch)
treed1f3b94cec86106cc5b0bc89fd730bbb7c8817d6
parentLinux 5.15-rc1 (diff)
downloadlinux-dev-80f0a1f99983296be587325004acf72dd11eccd8.tar.xz
linux-dev-80f0a1f99983296be587325004acf72dd11eccd8.zip
workqueue: annotate alloc_workqueue() as printf
This also enables checking of allows alloc_ordered_workqueue(). Signed-off-by: Rolf Eike Beer <eb@emlix.com> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--include/linux/workqueue.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 2ebef6b1a3d6..74d3c1efd9bb 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -399,9 +399,8 @@ extern struct workqueue_struct *system_freezable_power_efficient_wq;
* RETURNS:
* Pointer to the allocated workqueue on success, %NULL on failure.
*/
-struct workqueue_struct *alloc_workqueue(const char *fmt,
- unsigned int flags,
- int max_active, ...);
+__printf(1, 4) struct workqueue_struct *
+alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...);
/**
* alloc_ordered_workqueue - allocate an ordered workqueue