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/20211117152952.12271-1-sergio.paracuellos@gmail.com Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Krzysztof Wilczyński <kw@linux.com>
1 parent fa55b7d commit da48157

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)