Skip to contentSkip to conversation

Compilation issue in linux-socfpga

PATCH New Jade Lovelace 1 participant 2 messages Feb 12, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compilation issue in linux-socfpga

Hi!

I've fixed a compilation issue I ran into in linux-socfgpa with the socfpga_defconfig target where the _nocache variant of devm_ioremap is used, which has been removed in 2019. This seems to be a problem on all the existing branches, or at least I checked 6.0 and it still has it. 5.15 also has this issue.

This fpga-dma.c file seems to only be present in the downstream linux-socfpga tree, so that's the only place this patch is required.

Jade

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#1 lore raw

PATCH 1/1 mach-socfpga: Fix compilation; _nocache variants are gone since 2019

https://lore.kernel.org/lkml/[email protected]/

---
 arch/arm/mach-socfpga/fpga-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-socfpga/fpga-dma.c +1 -1
index 23ed0a0d8e28..3d62a3722044 100644
@@ -568,7 +568,7 @@ static void __iomem *request_and_map(struct platform_device *pdev,
 		return NULL;
 	}
 
-	ptr = devm_ioremap_nocache(&pdev->dev, res->start, resource_size(res));
+	ptr = devm_ioremap(&pdev->dev, res->start, resource_size(res));
 	if (!ptr)
 		dev_err(&pdev->dev, "ioremap_nocache of %s failed!", res->name);
 
Signature · 7 lines
2.39.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel