Skip to contentSkip to conversation

dmaengine: cirrus: ERR_CAST() ioremap error

PATCH Applied Alexander Sverdlin 2 participants 2 messages Sep 20, 2024 – Oct 11, 2024 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: cirrus: ERR_CAST() ioremap error

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

Fixes 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx")
---
 drivers/dma/ep93xx_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ep93xx_dma.c +1 -1
index 995427afe077..7989bc3db209 100644
@@ -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)
Signature · 1 line
2.46.0
#1 lore raw
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:

Quoted 11 lines · 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

Fixes 4e8ad5ed845b ("dmaengine: cirrus: Convert to DT for Cirrus EP93xx")

[...]

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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html