1 From: Sergio Paracuellos <sergio.paracuellos@gmail.com>
2 Date: Wed, 17 Nov 2021 16:29:52 +0100
3 Subject: [PATCH] PCI: mt7621: Declare mt7621_pci_ops static
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 Sparse complains about mt7621_pci_ops symbol is not declared and asks if
9 it should be declared as static instead. Sparse is right. Hence declare
12 Link: https://lore.kernel.org/r/20211117152952.12271-1-sergio.paracuellos@gmail.com
13 Reported-by: kernel test robot <lkp@intel.com>
14 Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
15 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
16 Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
17 Reviewed-by: Krzysztof WilczyĆski <kw@linux.com>
20 --- a/drivers/pci/controller/pcie-mt7621.c
21 +++ b/drivers/pci/controller/pcie-mt7621.c
22 @@ -148,7 +148,7 @@ static void __iomem *mt7621_pcie_map_bus
23 return pcie->base + RALINK_PCI_CONFIG_DATA + (where & 3);
26 -struct pci_ops mt7621_pcie_ops = {
27 +static struct pci_ops mt7621_pcie_ops = {
28 .map_bus = mt7621_pcie_map_bus,
29 .read = pci_generic_config_read,
30 .write = pci_generic_config_write,