Re: [PATCH] checkpatch: Check WQ_PERCPU or WQ_UNBOUND presence in alloc_workqueue() users
From: Joe Perches
Date: Thu Jun 04 2026 - 10:27:50 EST
On Thu, 2026-06-04 at 11:31 +0200, Marco Crivellari wrote:
> On Thu, Jun 4, 2026 at 7:08 AM Joe Perches <[joe@xxxxxxxxxxx](mailto:joe@xxxxxxxxxxx)> wrote:
> [...]
> > OK but a couple comments:
> >
> > Add devm_alloc_workqueue as well?
>
> No I don't think it would be useful / needed. There is only 1 user of
> that macro, devm_alloc_ordered_workqueue(), which already specifies
> the WQ_UNBOUND flag and it is part of the workqueue code.
drivers/power/supply/ipaq_micro_battery.c: mb->wq = devm_alloc_workqueue(&pdev->dev, "ipaq-battery-wq",
Maybe there will be more.