Skip to content

Commit 48617f0

Browse files
committed
Merge branch 'remotes/lorenzo/pci/misc'
- Fix iproc-msi and mvebu __iomem annotations (Ben Dooks) - Make mvebu_pci_bridge_emul_ops static (Ben Dooks) - Add Marek Vasut and Yoshihiro Shimoda as R-Car maintainers (Simon Horman) - Fix pcitest.c fd leak (Hewenliang) * remotes/lorenzo/pci/misc: tools: PCI: Fix fd leakage MAINTAINERS: Add Marek and Shimoda-san as R-Car PCIE co-maintainers PCI: mvebu: mvebu_pcie_map_registers __iomem fix PCI: mvebu: Make mvebu_pci_bridge_emul_ops static PCI: iproc-msi: Fix __iomem annotation in decode_msi_hwirq()
2 parents 7bd4c4a + 3c379a5 commit 48617f0

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

MAINTAINERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12489,7 +12489,8 @@ F: Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt
1248912489
F: drivers/pci/controller/pci-tegra.c
1249012490

1249112491
PCI DRIVER FOR RENESAS R-CAR
12492-
M: Simon Horman <[email protected]>
12492+
M: Marek Vasut <[email protected]>
12493+
M: Yoshihiro Shimoda <[email protected]>
1249312494
1249412495
1249512496
S: Maintained

drivers/pci/controller/pci-mvebu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ mvebu_pci_bridge_emul_pcie_conf_write(struct pci_bridge_emul *bridge,
554554
}
555555
}
556556

557-
struct pci_bridge_emul_ops mvebu_pci_bridge_emul_ops = {
557+
static struct pci_bridge_emul_ops mvebu_pci_bridge_emul_ops = {
558558
.write_base = mvebu_pci_bridge_emul_base_conf_write,
559559
.read_pcie = mvebu_pci_bridge_emul_pcie_conf_read,
560560
.write_pcie = mvebu_pci_bridge_emul_pcie_conf_write,
@@ -713,7 +713,7 @@ static void __iomem *mvebu_pcie_map_registers(struct platform_device *pdev,
713713

714714
ret = of_address_to_resource(np, 0, &regs);
715715
if (ret)
716-
return ERR_PTR(ret);
716+
return (void __iomem *)ERR_PTR(ret);
717717

718718
return devm_ioremap_resource(&pdev->dev, &regs);
719719
}

drivers/pci/controller/pcie-iproc-msi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,12 @@ static const struct irq_domain_ops msi_domain_ops = {
293293

294294
static inline u32 decode_msi_hwirq(struct iproc_msi *msi, u32 eq, u32 head)
295295
{
296-
u32 *msg, hwirq;
296+
u32 __iomem *msg;
297+
u32 hwirq;
297298
unsigned int offs;
298299

299300
offs = iproc_msi_eq_offset(msi, eq) + head * sizeof(u32);
300-
msg = (u32 *)(msi->eq_cpu + offs);
301+
msg = (u32 __iomem *)(msi->eq_cpu + offs);
301302
hwirq = readl(msg);
302303
hwirq = (hwirq >> 5) + (hwirq & 0x1f);
303304

tools/pci/pcitest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ static int run_test(struct pci_test *test)
129129
}
130130

131131
fflush(stdout);
132+
close(fd);
132133
return (ret < 0) ? ret : 1 - ret; /* return 0 if test succeeded */
133134
}
134135

0 commit comments

Comments
 (0)