]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: _dm_pci_phys_to_bus can be static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 17 Sep 2021 12:11:27 +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 efd8525af9efd897e757868584d24634bcb4c258..044babee164f0cb35f494547b370ca6f748a521f 100644 (file)
@@ -1426,9 +1426,9 @@ phys_addr_t dm_pci_bus_to_phys(struct udevice *dev, pci_addr_t bus_addr,
        return phys_addr;
 }
 
-int _dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t phys_addr,
-                       unsigned long flags, unsigned long skip_mask,
-                       pci_addr_t *ba)
+static int _dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t phys_addr,
+                              unsigned long flags, unsigned long skip_mask,
+                              pci_addr_t *ba)
 {
        struct pci_region *res;
        struct udevice *ctlr;