aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-09-17 15:11:26 +0300
committerTom Rini <trini@konsulko.com>2021-10-03 14:40:56 -0400
commit1512ac17e56433251f2216550375f99d1215f69e (patch)
tree085af7d9bc23e482300cd24b9de2f7592746dbaa /drivers
parentf98aa78ee4617dcaacb8f5ce1a91cb4afe7e7434 (diff)
downloadu-boot-1512ac17e56433251f2216550375f99d1215f69e.zip
u-boot-1512ac17e56433251f2216550375f99d1215f69e.tar.gz
u-boot-1512ac17e56433251f2216550375f99d1215f69e.tar.bz2
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 <vladimir.oltean@nxp.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci-uclass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index 338a05d..efd8525 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;