Re: [PATCH 11/17] workqueue: assert static storage for work declarations

From: sashiko-bot

Date: Mon Sep 14 2026 - 23:29:21 EST


> Static work initializers use the work address as a lockdep class key and
> mark the work item static for debugobjects. Automatic objects require
> on-stack initialization instead.
>
> Apply ASSERT_STATIC_STORAGE() to DECLARE_WORK(), DECLARE_DELAYED_WORK()
> and DECLARE_DEFERRABLE_WORK(). Automatic objects must use the matching
> INIT_*_ONSTACK() API and destroy the on-stack debugobjects before leaving
> scope. Keep the underlying initializers available for embedded objects.
>
> Assisted-by: OpenAI Codex
> Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>

Sashiko has reviewed this patch and found no issues. It looks great!

--
Sashiko AI review · https://sashiko.dev/#/patchset/20260915030336.1192299-1-ynorov@xxxxxxxxxx?part=11