Commit 80f0a1f9 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Tejun Heo

workqueue: annotate alloc_workqueue() as printf

This also enables checking of allows alloc_ordered_workqueue().
Signed-off-by: default avatarRolf Eike Beer <eb@emlix.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 6880fa6c
...@@ -399,9 +399,8 @@ extern struct workqueue_struct *system_freezable_power_efficient_wq; ...@@ -399,9 +399,8 @@ extern struct workqueue_struct *system_freezable_power_efficient_wq;
* RETURNS: * RETURNS:
* Pointer to the allocated workqueue on success, %NULL on failure. * Pointer to the allocated workqueue on success, %NULL on failure.
*/ */
struct workqueue_struct *alloc_workqueue(const char *fmt, __printf(1, 4) struct workqueue_struct *
unsigned int flags, alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...);
int max_active, ...);
/** /**
* alloc_ordered_workqueue - allocate an ordered workqueue * alloc_ordered_workqueue - allocate an ordered workqueue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment