Thread (28 messages) 28 messages, 7 authors, 2d ago

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

flat view

From: Yury Norov <hidden>
Date: 2026-09-15 15:53:52
Also in: linux-fsdevel, linux-mm, linux-rt-devel, lkml, llvm, netdev, rcu, virtualization

On Tue, Sep 15, 2026 at 10:24:01AM +0100, David Laight wrote:
On Mon, 14 Sep 2026 23:14:18 -0700
Andrew Morton [off-list ref] wrote:
quoted
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?
I have no answer. Maybe because lockdep isn't enabled by major distros...

The original report came from i386 randconfig. It looks like a combination
of some luck and a new code, probably attracting more robots attention.
 
Are there any code changes outside of testing?
ams_pmu_set/get_register in patch #6 for example.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help