Skip to content

Commit

Permalink
workqueue: annotate alloc_workqueue() as printf
Browse files Browse the repository at this point in the history
This also enables checking of allows alloc_ordered_workqueue().

Signed-off-by: Rolf Eike Beer <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
DerDakon authored and htejun committed Sep 13, 2021
1 parent 6880fa6 commit 80f0a1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80f0a1f

Please sign in to comment.