diff options
author | 2021-12-23 15:37:48 -0600 | |
---|---|---|
committer | 2022-01-03 15:05:28 -0600 | |
commit | 088c8405990d9d62ad26dff3c883d2409fa11e06 (patch) | |
tree | 0e287936bbf554e6f9403870c1692f7ae75ed58f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: xilinx-cpm: Rename xilinx_cpm_pcie_port to xilinx_cpm_pcie (diff) | |
download | wireguard-linux-088c8405990d9d62ad26dff3c883d2409fa11e06.tar.xz wireguard-linux-088c8405990d9d62ad26dff3c883d2409fa11e06.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions