Re: [PATCH] workqueue: fix devm_alloc_workqueue() va_list misuse

From: Tejun Heo

Date: Mon Apr 27 2026 - 13:32:30 EST


Hello, Breno.

Nice catch. Could you fold both noprof entries onto a shared helper?

static struct workqueue_struct *
alloc_workqueue_va(const char *fmt, unsigned int flags,
int max_active, va_list args)
{
struct workqueue_struct *wq;

wq = __alloc_workqueue(fmt, flags, max_active, args);
if (wq)
wq_init_lockdep(wq);
return wq;
}

alloc_workqueue_lockdep_map() can stay on bare __alloc_workqueue() since
it supplies its own lockdep_map.

Thanks.

--
tejun