* [PATCH wq/for-7.1-fixes] workqueue: Annotate alloc_workqueue_va() with __printf(1, 0)
@ 2026-04-29 19:42 Tejun Heo
2026-04-29 19:58 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2026-04-29 19:42 UTC (permalink / raw)
To: linux-kernel
Cc: Lai Jiangshan, Breno Leitao, kernel test robot, oe-kbuild-all
alloc_workqueue_va() forwards its va_list to __alloc_workqueue() which
ultimately feeds vsnprintf(). __alloc_workqueue() already carries
__printf(1, 0); the new wrapper needs the same annotation so format
string checking propagates through the forwarding.
Fixes: 0de4cb473aed ("workqueue: fix devm_alloc_workqueue() va_list misuse")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604300347.2LgXyteh-lkp@intel.com/
Signed-off-by: Tejun Heo <tj@kernel.org>
---
kernel/workqueue.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 24d0265191d4..3d2e3b2ec528 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -5906,6 +5906,7 @@ static struct workqueue_struct *__alloc_workqueue(const char *fmt,
return NULL;
}
+__printf(1, 0)
static struct workqueue_struct *alloc_workqueue_va(const char *fmt,
unsigned int flags,
int max_active,
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-29 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 19:42 [PATCH wq/for-7.1-fixes] workqueue: Annotate alloc_workqueue_va() with __printf(1, 0) Tejun Heo
2026-04-29 19:58 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox