From: Rolf Eike Beer Date: Mon, 13 Sep 2021 10:02:56 +0000 (+0200) Subject: workqueue: annotate alloc_workqueue() as printf X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=80f0a1f99983296be587325004acf72dd11eccd8;p=linux.git workqueue: annotate alloc_workqueue() as printf This also enables checking of allows alloc_ordered_workqueue(). Signed-off-by: Rolf Eike Beer Signed-off-by: Tejun Heo --- diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 2ebef6b1a3d6c..74d3c1efd9bb5 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