From: Vladimir Oltean Date: Fri, 17 Sep 2021 12:11:26 +0000 (+0300) Subject: pci: pci_read_config can be static X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=1512ac17e56433251f2216550375f99d1215f69e;p=u-boot.git pci: pci_read_config 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 338a05d1e8..efd8525af9 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -369,8 +369,8 @@ int pci_bus_read_config(const struct udevice *bus, pci_dev_t bdf, int offset, return ops->read_config(bus, bdf, offset, valuep, size); } -int pci_read_config(pci_dev_t bdf, int offset, unsigned long *valuep, - enum pci_size_t size) +static int pci_read_config(pci_dev_t bdf, int offset, unsigned long *valuep, + enum pci_size_t size) { struct udevice *bus; int ret;