Re: [PATCH 14/17] ratelimit: assert static storage for DEFINE_RATELIMIT_STATE()

From: sashiko-bot

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


> DEFINE_RATELIMIT_STATE() uses a static raw spinlock initializer, which
> requires a persistent object address for lockdep. Automatic objects must
> use ratelimit_state_init().
>
> Add ASSERT_STATIC_STORAGE() to the declaration and align the virtio tools
> stub. The virtio tools use a private compiler.h, so provide the same
> assertion helper and its unused attribute there as well.
>
> 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=14