Re: [RFC PATCH 1/1] locking: introduce devm_mutex_init and devm_mutex_destroy
From: Andy Shevchenko
Date: Tue Nov 28 2023 - 11:35:58 EST
On Mon, Nov 27, 2023 at 08:55:18PM -0500, Waiman Long wrote:
> On 11/27/23 19:09, George Stark wrote:
...
> These APIs are specific to devres. I don't believe it is suitable to put
> them into the generic mutex.h header file. All devres_* functions are
> defined in include/linux/device.h which is probabably not included in
> mutex.h. You may consider putting these APIs into device.h instead.
+1. We have include/linux/devm-helpers.h.
--
With Best Regards,
Andy Shevchenko