From: Vladimir Oltean Date: Fri, 17 Sep 2021 12:11:27 +0000 (+0300) Subject: pci: _dm_pci_phys_to_bus can be static X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8101a40bf41ca8c1d085327e81b9cee1ca2eee8b;p=u-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index efd8525af9..044babee16 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;