> DEFINE_KLIST() statically initializes k_lock, relying on the object > address as a persistent lockdep class key. An automatic local klist must > instead use klist_init(). > > Add ASSERT_STATIC_STORAGE() to enforce this requirement at compile time. > Keep KLIST_INIT() available for embedded objects. > > 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=10

