Re: [PATCHv2] dmaengine: at_hdmac: fix sparse '__iomem' cast warning in memset helpers
From: Vinod Koul
Date: Thu Sep 03 2026 - 13:42:44 EST
On Fri, 24 Jul 2026 15:59:58 -0700, Rosen Penev wrote:
> Both atc_prep_dma_memset() and atc_prep_dma_memset_sg() declare vaddr
> as 'void __iomem *' but assign the return of dma_pool_alloc(), which
> returns 'void *' (not iomem memory). This causes sparse to warn about
> a cast removing the __iomem address space at the dereference site.
>
> The struct field memset_vaddr is also typed as 'int *', which is
> neither the type returned by dma_pool_alloc() nor the type used for
> the actual writes.
>
> [...]
Applied, thanks!
[1/1] dmaengine: at_hdmac: fix sparse '__iomem' cast warning in memset helpers
commit: fdae0d0f096c92dd05d3722759fd614ea341e0dc
Best regards,
--
~Vinod