]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
PCI: xgene: Annotate __iomem pointer
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 17 May 2021 17:18:39 +0000 (12:18 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 6 Jul 2021 15:39:10 +0000 (10:39 -0500)
commit662e4b03431f5304603f1e42c4d4c2c1d64cba40
tree1ea9af114bcf1eb6dfaede3458fa2401b80c6af9
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
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>
drivers/pci/controller/pci-xgene.c