]> git.itanic.dy.fi Git - linux-stable/commitdiff
PCI: mt7621: Declare mt7621_pci_ops static
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Wed, 17 Nov 2021 15:29:52 +0000 (16:29 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Jan 2022 21:22:32 +0000 (15:22 -0600)
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>
drivers/pci/controller/pcie-mt7621.c

index b60dfb45ef7bd0d84c78fdcf68a417b071906d8f..4138c0e8351354d3e33ea35262a49e638af2fd32 100644 (file)
@@ -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,