Skip to content

Commit 680cbd1

Browse files
lsgunthkelvin-cao
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: 080b47def5e5 ("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 4279d99 commit 680cbd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ static void init_pff(struct switchtec_dev *stdev)
15431543
{
15441544
int i;
15451545
u32 reg;
1546-
struct part_cfg_regs *pcfg = stdev->mmio_part_cfg;
1546+
struct part_cfg_regs __iomem *pcfg = stdev->mmio_part_cfg;
15471547

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

0 commit comments

Comments
 (0)