Re: [PATCH v4] checkpatch: Check WQ_PERCPU or WQ_UNBOUND presence in alloc_workqueue() users
From: Marco Crivellari
Date: Mon Jun 08 2026 - 08:37:56 EST
On Mon, Jun 8, 2026 at 11:33 AM Breno Leitao <leitao@xxxxxxxxxx> wrote:
>
> On Mon, Jun 08, 2026 at 10:37:11AM +0200, Marco Crivellari wrote:
> > The workqueue API introduced a new flag, WQ_PERCPU, that has to be used when
> > WQ_UNBOUND is not present. One of these flags must be present, but not
> > both of them.
> >
> > To limit usage mistakes, emit an ERROR if one of the below condition is met:
>
> The changelog still says "emit an ERROR", but since v3 the code uses
> WARN()
Ouch, thanks for spotting this.
--
Marco Crivellari
SUSE Labs