OSDN Git Service

PCI: switchtec: Add missing __iomem tag to fix sparse warnings
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 28 Jul 2020 19:24:34 +0000 (13:24 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 31 Jul 2020 16:23:45 +0000 (11:23 -0500)
commit42dae8937406c98ce0cb6ff0d683765c854098d9
tree7dd5ef35fcaabe536500d128f1ffd1460969aa69
parent5f11723b204aaf461e7a5242fc732222d2f0aa17
PCI: switchtec: Add missing __iomem tag to fix sparse warnings

Fix a missing __iomem tag in the init_pfn() function. This fixes a sparse
warning of the form:

  $ make C=2 drivers/pci/switch/
  drivers/pci/switch/switchtec.c:... incorrect type assignment(different address spaces)

Fixes: 080b47def5e5 ("MicroSemi Switchtec management interface driver")
Link: https://lore.kernel.org/r/20200728192434.18993-2-logang@deltatee.com
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c