[PATCH 2/2] arm64: mm: Remove assembly DMA cache maintenance wrappers

Christoph Hellwig hch at lst.de
Sun Jun 12 22:53:43 PDT 2022


On Fri, Jun 10, 2022 at 04:12:28PM +0100, Will Deacon wrote:
> Remove the __dma_{flush,map,unmap}_area assembly wrappers and call the
> appropriate cache maintenance functions directly from the DMA mapping
> callbacks.

Thanks, this looks so much nicer.  Is there any good reason why
the C prototypes for the assembly function take an unsigned long
instead of a void *, though?  It seems like all or almost all of
the callers have a pointer at hand an do silly casts for the assembly
code that could work perfectly fine with a pointer and length.



More information about the linux-arm-kernel mailing list