[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <171af93e-e5be-b35f-23d4-0ccf37062902@redhat.com>
Date: Wed, 21 Apr 2021 14:26:26 +0200
From: Hans de Goede <hdegoede@...hat.com>
To: "Vaittinen, Matti" <Matti.Vaittinen@...rohmeurope.com>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>
Cc: "linux-hwmon@...r.kernel.org" <linux-hwmon@...r.kernel.org>,
"wim@...ux-watchdog.org" <wim@...ux-watchdog.org>,
"sre@...nel.org" <sre@...nel.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"jdelvare@...e.com" <jdelvare@...e.com>,
"mgross@...ux.intel.com" <mgross@...ux.intel.com>,
"bjorn.andersson@...aro.org" <bjorn.andersson@...aro.org>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"linux@...ck-us.net" <linux@...ck-us.net>,
"platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>,
"wens@...e.org" <wens@...e.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pm@...r.kernel.org" <linux-pm@...r.kernel.org>,
"myungjoo.ham@...sung.com" <myungjoo.ham@...sung.com>,
"linux-watchdog@...r.kernel.org" <linux-watchdog@...r.kernel.org>,
"agross@...nel.org" <agross@...nel.org>,
"cw00.choi@...sung.com" <cw00.choi@...sung.com>,
"broonie@...nel.org" <broonie@...nel.org>
Subject: Re: [PATCH v3 2/8] MAINTAINERS: Add entry for devm helpers
Hi,
On 4/21/21 2:17 PM, Vaittinen, Matti wrote:
>
> On Wed, 2021-04-21 at 13:58 +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 4/21/21 9:51 AM, Matti Vaittinen wrote:
>>> On Tue, 2021-03-23 at 15:19 +0100, Greg KH wrote:
>>>> On Tue, Mar 23, 2021 at 02:58:28PM +0100, Hans de Goede wrote:
>>>>> Hi,
>>>>>
>>>>> On 3/23/21 2:56 PM, Matti Vaittinen wrote:
>>>>>> Devm helper header containing small inline helpers was added.
>>>>>> Hans promised to maintain it.
>>>>>>
>>>>>> Add Hans as maintainer and myself as designated reviewer.
>>>>>>
>>>>> Ultimately this is up to Greg though, so lets wait and see what
>>>>> Greg has to say about this.
>>>>
>>>> Can we move some of the devm_* calls in include/device.h into
>>>> here as
>>>> well so that you all can be in charge of them instead of me?
>>>
>>> Seems like this was left w/o answer. I guess the question was
>>> pointed
>>> to Hans
>>
>> I believe that Greg was (mostly) joking here. At least that is how
>> I interpreted Greg's reply,which is why I did not answer.
>
> Ah. I missed the sarcastic tone of typing. I should've noted that by
> the font :]
>
>> Also note that Greg merged this series, but not this patch,
>> so the new devm-helpers.h file will presumably be maintained by Greg.
>
> Hmm. Are you sure?
> https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?h=driver-core-next&id=2077ca682169afb212d8a887c70057a660290df9
Ah, you're right.
I was looking at the wrong branch, sorry about the confusion.
Ok, so I guess I do maintain the new devm-helpers.h file, that is fine.
Which makes your email from earlier today more relevant:
> but what comes to my (not always so humble) opinion - most of
> the devm functions in device.h are tightly related to the device
> interface or devres. Thus the device.h feels like appropriate place for
> most of those.
I agree with you that most devm_ functions in device.h are probably
left there. Moving them will also mean modifying all the drivers
which use them to include the new devm-helpers.h include file
which seems like needless churn.
> OTOH, the kmalloc/kfree related functions, strdub and
> kmemdub might be candidates for move - those are not really "device
> things".
I'm certainly open to moving some functions to devm-helpers.h, but
also see above about needless churn.
Regards,
Hans
Powered by blists - more mailing lists