On Thu, Sep 5, 2024 at 11:47 PM Bart Van Assche <bvanassche@xxxxxxx> wrote: > > The following pattern occurs 5 times in kernel drivers: > > lockdep_register_key(key); > __mutex_init(mutex, name, key); > > In several cases the 'name' argument matches #mutex. Hence, introduce > the mutex_init_with_key() macro. This macro derives the 'name' argument > from the 'mutex' argument. FWIW, Reviewed-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> -- With Best Regards, Andy Shevchenko