Skip to content

Commit da48157

Browse files
parakabjorn-helgaas
authored andcommitted
PCI: mt7621: Declare mt7621_pci_ops static
Sparse complains about mt7621_pci_ops symbol is not declared and asks if it should be declared as static instead. Sparse is right. Hence declare symbol as static. Link: https://lore.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Krzysztof Wilczyński <[email protected]>
1 parent fa55b7d commit da48157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pcie-mt7621.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static void __iomem *mt7621_pcie_map_bus(struct pci_bus *bus,
148148
return pcie->base + RALINK_PCI_CONFIG_DATA + (where & 3);
149149
}
150150

151-
struct pci_ops mt7621_pci_ops = {
151+
static struct pci_ops mt7621_pci_ops = {
152152
.map_bus = mt7621_pcie_map_bus,
153153
.read = pci_generic_config_read,
154154
.write = pci_generic_config_write,

0 commit comments

Comments
 (0)