From: Vladimir Oltean Date: Fri, 17 Sep 2021 12:11:28 +0000 (+0300) Subject: pci: layerscape: ls_pcie_conf_address can be static X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c67930ef3ed2e5fc16c6b95c798454ad0e7ccd65;p=u-boot.git pci: layerscape: ls_pcie_conf_address 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/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index bd2c19f7f0..f50d6ef653 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -143,8 +143,8 @@ static int ls_pcie_addr_valid(struct ls_pcie_rc *pcie_rc, pci_dev_t bdf) return 0; } -int ls_pcie_conf_address(const struct udevice *bus, pci_dev_t bdf, - uint offset, void **paddress) +static int ls_pcie_conf_address(const struct udevice *bus, pci_dev_t bdf, + uint offset, void **paddress) { struct ls_pcie_rc *pcie_rc = dev_get_priv(bus); struct ls_pcie *pcie = pcie_rc->pcie;