> 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 <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=13

