]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: pci_write_config can be static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 17 Sep 2021 12:11:25 +0000 (15:11 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 3 Oct 2021 18:40:56 +0000 (14:40 -0400)
To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c

index 4d0e938fe50f89c3500bcb0486672da8400a1330..338a05d1e832a463fd9f25436cce802d0063ab33 100644 (file)
@@ -304,8 +304,8 @@ int pci_bus_clrset_config32(struct udevice *bus, pci_dev_t bdf, int offset,
        return pci_bus_write_config(bus, bdf, offset, val, PCI_SIZE_32);
 }
 
-int pci_write_config(pci_dev_t bdf, int offset, unsigned long value,
-                    enum pci_size_t size)
+static int pci_write_config(pci_dev_t bdf, int offset, unsigned long value,
+                           enum pci_size_t size)
 {
        struct udevice *bus;
        int ret;