[PATCH v3 4/7] dma-mapping: Add helpers for dma_range_map bounds

Hanjun Guo guohanjun at huawei.com
Sat Feb 24 03:47:27 PST 2024


On 2024/2/10 0:50, Robin Murphy wrote:
> Several places want to compute the lower and/or upper bounds of a
> dma_range_map, so let's factor that out into reusable helpers.
> 
> Acked-by: Rob Herring <robh at kernel.org>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
> ---
> v2: fix warning for 32-bit builds
> ---
>   arch/loongarch/kernel/dma.c |  9 ++-------
>   drivers/acpi/arm64/dma.c    |  8 +-------
>   drivers/of/device.c         | 11 ++---------
>   include/linux/dma-direct.h  | 18 ++++++++++++++++++
>   4 files changed, 23 insertions(+), 23 deletions(-)

For the ARM64 code,

Reviewed-by: Hanjun Guo <guohanjun at huawei.com>

Thanks
Hanjun



More information about the linux-arm-kernel mailing list