Re: [PATCH 05/17] locking/seqlock: assert static storage for DEFINE_SEQLOCK()

From: sashiko-bot

Date: Mon Sep 14 2026 - 23:32:01 EST


> DEFINE_SEQLOCK() statically initializes its sequence counter and spinlock.
> Their lockdep maps require persistent class keys, which an automatic
> local object cannot provide through this initializer.
>
> Add ASSERT_STATIC_STORAGE() to the declaration macro. Automatic seqlocks
> must use seqlock_init(); the underlying initializer remains 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=5