> DEFINE_RT_MUTEX() statically initializes both the mutex lockdep map and > its internal wait lock. An automatic local object cannot supply the > persistent class key expected by this initialization. > > Add ASSERT_STATIC_STORAGE() to reject automatic declarations. Such mutexes > must use rt_mutex_init(); file-scope and static local definitions remain > valid. Leave __RT_MUTEX_INITIALIZER() 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=2

