summaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2021-12-23 15:37:48 -0600
committerBjorn Helgaas <bhelgaas@google.com>2022-01-03 15:05:28 -0600
commit088c8405990d9d62ad26dff3c883d2409fa11e06 (patch)
tree0e287936bbf554e6f9403870c1692f7ae75ed58f /drivers/pci/controller/dwc/pci-keystone.c
parentdacee5872d896b1aaec982829f3b4a3e8e14e53c (diff)
downloadlinux-088c8405990d9d62ad26dff3c883d2409fa11e06.tar.bz2
PCI: hisi: Avoid invalid address space conversions
The sparse checker complains about converting pointers between address spaces. The pci_config_window.priv pointer is a generic void *, but hisi_pcie_map_bus() needs a void __iomem *. This isn't a problem in other drivers because they store the __iomem pointer in a driver struct. Add a trivial struct hisi_pcie to avoid the warning. The sparse warning looks like this: $ make C=2 drivers/pci/controller/ drivers/pci/controller/dwc/pcie-hisi.c:61:37: warning: incorrect type in initializer (different address spaces) drivers/pci/controller/dwc/pcie-hisi.c:61:37: expected void [noderef] __iomem *reg_base drivers/pci/controller/dwc/pcie-hisi.c:61:37: got void *priv Link: https://lore.kernel.org/r/20211223213749.1314142-2-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Zhou Wang <wangzhou1@hisilicon.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions