Re: [RFC PATCH 1/1] locking: introduce devm_mutex_init and devm_mutex_destroy

From: George Stark
Date: Fri Dec 01 2023 - 08:43:31 EST


Andy, Waiman

Thanks for the review.

I'll move the patch to the devm-helpers.h then.


On 11/28/23 19:35, Andy Shevchenko wrote:
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.


--
Best regards
George