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>
This commit is contained in:

committed by
Tom Rini

parent
1512ac17e5
commit
8101a40bf4
@@ -1426,9 +1426,9 @@ phys_addr_t dm_pci_bus_to_phys(struct udevice *dev, pci_addr_t bus_addr,
|
|||||||
return phys_addr;
|
return phys_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t phys_addr,
|
static int _dm_pci_phys_to_bus(struct udevice *dev, phys_addr_t phys_addr,
|
||||||
unsigned long flags, unsigned long skip_mask,
|
unsigned long flags, unsigned long skip_mask,
|
||||||
pci_addr_t *ba)
|
pci_addr_t *ba)
|
||||||
{
|
{
|
||||||
struct pci_region *res;
|
struct pci_region *res;
|
||||||
struct udevice *ctlr;
|
struct udevice *ctlr;
|
||||||
|
Reference in New Issue
Block a user