Re: [PATCH 13/17] kthread: assert static storage for delayed work declarations
From: sashiko-bot
Date: Mon Sep 14 2026 - 23:27:43 EST
> DEFINE_KTHREAD_DELAYED_WORK() embeds a statically initialized timer.
> Using the declaration for an automatic object violates the timer's
> debugobjects storage contract.
>
> Add ASSERT_STATIC_STORAGE() to reject such declarations. Plain
> DEFINE_KTHREAD_WORK() has no embedded timer or static lockdep map and
> remains usable for automatic objects with an appropriately bounded
> lifetime.
>
> 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=13