[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bc95636a-8b67-b0cd-dc18-b21ac4b83962@wanadoo.fr>
Date: Wed, 5 Jan 2022 22:23:27 +0100
From: Christophe JAILLET <christophe.jaillet@...adoo.fr>
To: Arnd Bergmann <arnd@...db.de>
Cc: Richard Henderson <rth@...ddle.net>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Matt Turner <mattst88@...il.com>,
Logan Gunthorpe <logang@...tatee.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Mike Rapoport <rppt@...nel.org>,
David Hildenbrand <david@...hat.com>,
martin.oliveira@...eticom.com, alpha <linux-alpha@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
kernel-janitors <kernel-janitors@...r.kernel.org>
Subject: Re: [PATCH] alpha: Remove usage of the deprecated "pci-dma-compat.h"
API
Le 03/01/2022 à 02:51, Arnd Bergmann a écrit :
> On Sun, Jan 2, 2022 at 10:32 AM Christophe JAILLET
> <christophe.jaillet@...adoo.fr> wrote:
>>
>> In [1], Christoph Hellwig has proposed to remove the wrappers in
>> include/linux/pci-dma-compat.h.
>>
>> Some reasons why this API should be removed have been given by Julia
>> Lawall in [2].
>>
>> A coccinelle script has been used to perform the needed transformation.
>> Only relevant parts are given below.
>>
>>
>> [1]: https://lore.kernel.org/kernel-janitors/20200421081257.GA131897@infradead.org/
>> [2]: https://lore.kernel.org/kernel-janitors/alpine.DEB.2.22.394.2007120902170.2424@hadrien/
>>
>> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
>
> Reviewed-by: Arnd Bergmann <arnd@...db.de>
>
> It looks like the number of remaining files that use the old
> interfaces has gone down
> a lot more since you last sent these patches. I would suggest you send them as a
> series that includes the patch to remove the header as the last change, and
> ask Andrew to pick up the ones that remain after this resend into the -mm tree,
> possibly after the next -rc1. How many patches do you have left?
>
> Arnd
>
Hi,
This would be ~ 10 patches.
I sent recently some missing ones because I was not aware of
--include-headers. So .h files were missing in my previous patches.
The main remaining issue is linked to files in message/fusion.
The patches are big.
They have to be looked at carefully because it touches some GFP flags
when s/pci_alloc_consistent/dma_alloc_coherent/.
My last try did not get any attention.
Even [1] which is purely mechanical
I'll try another approach without trying to turn some (hidden)
GFP_ATOMIC into GFP_KERNEL.
1st patch: only mechanical changes done with coccinelle, leaving GFP_ATOMIC
2nd patch: add some FIXME comments explaining why some could be turned
into GFP_KERNEL
3rd patch: remove the comments and update the GFP flags accordingly.
So, a maintainer could either apply 1 (no risk at all, should even
generate the same .o file), or 1+2 (only FIXME comments for future
analysis) or 1+2+3 for full clean-up (if he trusts me and/or has time to
check my explanations).
This way, I hope that some could at least apply the first one.
Being able to axe this deprecated API and .h file would be my
contribution to Ingo Molnar's "Fast Kernel Headers" tree :)
CJ
[1]:
https://lore.kernel.org/kernel-janitors/db5aa78d7d44b809ab83ba6fb4880d698517bfec.1623580326.git.christophe.jaillet@wanadoo.fr/
Powered by blists - more mailing lists