summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-10-12 01:59:49 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-10-12 01:59:49 +0200
commit0a5d6c641b671370f019cbe20fe51ee3ef00264c (patch)
treee4837d29b156e0bf09c84caf2fbcb3043a63c2b6 /include
parentMerge tag 'for-5.15-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
parentworkqueue: fix state-dump console deadlock (diff)
downloadlinux-0a5d6c641b671370f019cbe20fe51ee3ef00264c.tar.xz
linux-0a5d6c641b671370f019cbe20fe51ee3ef00264c.zip
Merge branch 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue fixes from Tejun Heo: "One patch to add a missing __printf annotation and the other to enable deferred printing for debug dumps to avoid deadlocks when triggered from some contexts (e.g. console drivers)" * 'for-5.15-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: fix state-dump console deadlock workqueue: annotate alloc_workqueue() as printf
Diffstat (limited to 'include')
-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