Message ID | d4b542f1d678796fbf094ebcc77295af3617bca0.camel@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 5b484feb7a26615f09b398e3ac5cefd5c85e9b37 |
Headers | show |
Series | dmaengine: cirrus: ERR_CAST() ioremap error | expand |
Hello: This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <arnd@arndb.de>: On Sat, 21 Sep 2024 00:39:49 +0200 you wrote: > ep93xx_dma.c:1354:37: sparse: sparse: incorrect type in return expression > (different address spaces) > ep93xx_dma.c:1354:37: sparse: expected struct ep93xx_dma_engine * > ep93xx_dma.c:1354:37: sparse: got void [noderef] __iomem *regs > > Reported-by: kernel test robot <lkp@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202409202250.fPlN2Erd-lkp@intel.com/ > Fixes: 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx") > Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> > > [...] Here is the summary with links: - dmaengine: cirrus: ERR_CAST() ioremap error https://git.kernel.org/soc/soc/c/5b484feb7a26 You are awesome, thank you!
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index 995427afe077..7989bc3db209 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c @@ -1395,7 +1395,7 @@ static struct ep93xx_dma_engine *ep93xx_dma_of_probe(struct platform_device *pde edmac->chan.device = dma_dev; edmac->regs = devm_platform_ioremap_resource(pdev, i); if (IS_ERR(edmac->regs)) - return edmac->regs; + return ERR_CAST(edmac->regs); edmac->irq = fwnode_irq_get(dev_fwnode(dev), i); if (edmac->irq < 0)
ep93xx_dma.c:1354:37: sparse: sparse: incorrect type in return expression (different address spaces) ep93xx_dma.c:1354:37: sparse: expected struct ep93xx_dma_engine * ep93xx_dma.c:1354:37: sparse: got void [noderef] __iomem *regs Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202409202250.fPlN2Erd-lkp@intel.com/ Fixes: 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx") Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> --- drivers/dma/ep93xx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)