PCI: mvebu: mvebu_pcie_map_registers __iomem fix
Subsystems (3)
PATCH 1/1 PCI: mvebu: mvebu_pcie_map_registers __iomem fix
Fix the return type of mvebu_pcie_map_registers in the error path to have __iomem on it. Fixes the following sparse warning:
drivers/pci/controller/pci-mvebu.c:716:31: warning: incorrect type in return expression (different address spaces)drivers/pci/controller/pci-mvebu.c:716:31: expected void [noderef] <asn:2> *drivers/pci/controller/pci-mvebu.c:716:31: got void *
---
Cc: Thomas Petazzoni <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Andrew Murray <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- drivers/pci/controller/pci-mvebu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/controller/pci-mvebu.c +1 -1
@@ -713,7 +713,7 @@ static void __iomem *mvebu_pcie_map_registers(struct platform_device *pdev, ret =of_address_to_resource (np,0 , ®s);if (ret) -return ERR_PTR (ret); +return (void __iomem *)ERR_PTR (ret);return devm_ioremap_resource (&pdev->dev, ®s); }
Signature · 1 line
2.23.0
Lorenzo Pieralisi
AppliedQuoted 18 lines · Ben Dooks (Codethink)
Fix the return type of
mvebu_pcie_map_registersin the error path to have__iomemon it. Fixes the following sparse warning:
drivers/pci/controller/pci-mvebu.c:716:31: warning: incorrect type in return expression (different address spaces)drivers/pci/controller/pci-mvebu.c:716:31: expected void [noderef] <asn:2> *drivers/pci/controller/pci-mvebu.c:716:31: got void *Signed-off-by Ben Dooks <[email protected]>---
Cc: Thomas Petazzoni <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Lorenzo Pieralisi <[email protected]>
Cc: Andrew Murray <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Quoted 3 lines
--- drivers/pci/controller/pci-mvebu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to pci/misc, thanks.
Lorenzo
Quoted 16 lines
drivers/pci/controller/pci-mvebu.c +1
-1@@ -713,7 +713,7 @@ static void __iomem *mvebu_pcie_map_registers(struct platform_device *pdev, ret =of_address_to_resource (np,0 , ®s);if (ret) -return ERR_PTR (ret); +return (void __iomem *)ERR_PTR (ret);return devm_ioremap_resource (&pdev->dev, ®s); }Signature · 1 line
2.23.0
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel