Skip to content

Commit 42dae89

Browse files
lsgunthbjorn-helgaas
authored andcommitted
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: 080b47d ("MicroSemi Switchtec management interface driver") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Logan Gunthorpe <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 5f11723 commit 42dae89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/switch/switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ static void init_pff(struct switchtec_dev *stdev)
14841484
{
14851485
int i;
14861486
u32 reg;
1487-
struct part_cfg_regs *pcfg = stdev->mmio_part_cfg;
1487+
struct part_cfg_regs __iomem *pcfg = stdev->mmio_part_cfg;
14881488

14891489
for (i = 0; i < SWITCHTEC_MAX_PFF_CSR; i++) {
14901490
reg = ioread16(&stdev->mmio_pff_csr[i].vendor_id);

0 commit comments

Comments
 (0)