Skip to content

Commit 662e4b0

Browse files
committed
PCI: xgene: Annotate __iomem pointer
"bar_addr" is passed as the argument to writel(), which expects a "void __iomem *". Annotate "bar_addr" correctly. Resolves an sparse "incorrect type in argument 2 (different address spaces)" warning. Link: https://lore.kernel.org/r/202105171809.Tay9fImZ-lkp@intel.com Link: https://lore.kernel.org/r/20210517171839.25777-1-helgaas@kernel.org Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
1 parent 6efb943 commit 662e4b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/pci-xgene.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ static void xgene_pcie_setup_ib_reg(struct xgene_pcie_port *port,
485485
{
486486
void __iomem *cfg_base = port->cfg_base;
487487
struct device *dev = port->dev;
488-
void *bar_addr;
488+
void __iomem *bar_addr;
489489
u32 pim_reg;
490490
u64 cpu_addr = entry->res->start;
491491
u64 pci_addr = cpu_addr - entry->offset;

0 commit comments

Comments
 (0)