aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-09-17 15:11:27 +0300
committerTom Rini <trini@konsulko.com>2021-10-03 14:40:56 -0400
commit8101a40bf41ca8c1d085327e81b9cee1ca2eee8b (patch)
tree5de7d7f771318b36ef9460df02eb4b2978a88af1 /drivers
parent1512ac17e56433251f2216550375f99d1215f69e (diff)
downloadu-boot-8101a40bf41ca8c1d085327e81b9cee1ca2eee8b.zip
u-boot-8101a40bf41ca8c1d085327e81b9cee1ca2eee8b.tar.gz
u-boot-8101a40bf41ca8c1d085327e81b9cee1ca2eee8b.tar.bz2
pci: _dm_pci_phys_to_bus can be static
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci-uclass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index efd8525..044babe 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -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;