Re: [PATCH 00/17] Treewide: enforce static storage for object initializers

From
David Laight <hidden>
Date
2026-09-15 09:24:05
Also in
linux-fsdevel, linux-mm, linux-rt-devel, lkml, llvm, netdev, rcu, virtualization
Reply to
Andrew Morton, 2026-09-15
On Mon, 14 Sep 2026 23:14:18 -0700
Andrew Morton [off-list ref] wrote:
On Mon, 14 Sep 2026 23:03:18 -0400 Yury Norov [off-list ref] wrote:
quoted
Declaration macros that statically initialize embedded locks require static
storage when lockdep is enabled. Automatic objects must use runtime
initialization so lockdep receives a persistent class key.

For automatic local objects, lockdep cannot use the lock address as a persistent
class key and reports "INFO: trying to register non-static key" before disabling
itself.  
So why haven't we been buried in reports about this warning coming out?
Are there any code changes outside of testing?

David
Thread (29 messages) 29 messages, 7 authors, last reply 3d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help