aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Paracuellos <[email protected]>2021-11-17 16:29:52 +0100
committerBjorn Helgaas <[email protected]>2022-01-12 15:22:32 -0600
commitda48157092e7dd25e8c0fa38e0ccd93219a66046 (patch)
treed9a4a533b9659a9656065d1eb37fd7ba54357b41
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
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]>
-rw-r--r--drivers/pci/controller/pcie-mt7621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c
index b60dfb45ef7b..4138c0e83513 100644
--- a/drivers/pci/controller/pcie-mt7621.c
+++ b/drivers/pci/controller/pcie-mt7621.c
@@ -148,7 +148,7 @@ static void __iomem *mt7621_pcie_map_bus(struct pci_bus *bus,
return pcie->base + RALINK_PCI_CONFIG_DATA + (where & 3);
}
-struct pci_ops mt7621_pci_ops = {
+static struct pci_ops mt7621_pci_ops = {
.map_bus = mt7621_pcie_map_bus,
.read = pci_generic_config_read,
.write = pci_generic_config_write,