Re: [PATCH] lockdep: add a hint for "INFO: trying to register non-static key." message

2021-03-22 Thread Waiman Long
On 3/21/21 2:49 AM, Tetsuo Handa wrote: Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest developers to check whether initialization functions for objects are called, before making developers

[PATCH] lockdep: add a hint for "INFO: trying to register non-static key." message

2021-03-21 Thread Tetsuo Handa
Since this message is printed when dynamically allocated spinlocks (e.g. kzalloc()) are used without initialization (e.g. spin_lock_init()), suggest developers to check whether initialization functions for objects are called, before making developers wonder what annotation is missing.