From: Sergio Paracuellos Date: Wed, 17 Nov 2021 15:29:52 +0000 (+0100) Subject: PCI: mt7621: Declare mt7621_pci_ops static X-Git-Tag: v5.17-rc1~73^2~10^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da48157092e7dd25e8c0fa38e0ccd93219a66046;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Sergio Paracuellos Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Reviewed-by: Krzysztof WilczyƄski --- diff --git a/drivers/pci/controller/pcie-mt7621.c b/drivers/pci/controller/pcie-mt7621.c index b60dfb45ef7bd..4138c0e835135 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,