[PATCHv2] dmaengine: at_hdmac: fix sparse '__iomem' cast warning in memset helpers

Vinod Koul vkoul at kernel.org
Thu Sep 3 10:04:30 PDT 2026


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





More information about the linux-arm-kernel mailing list