ramips: 6.1: copy config and patches
[openwrt/staging/jow.git] / target / linux / ramips / patches-6.1 / 102-v5.17-PCI-mt7621-Declare-mt7621_pci_ops-static.patch
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
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
7
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
10 symbol as static.
11
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>
18 ---
19
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);
24 }
25
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,