aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Oltean2021-09-17 15:11:26 +0300
committerTom Rini2021-10-03 14:40:56 -0400
commit1512ac17e56433251f2216550375f99d1215f69e (patch)
tree085af7d9bc23e482300cd24b9de2f7592746dbaa
parentf98aa78ee4617dcaacb8f5ce1a91cb4afe7e7434 (diff)
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>
-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 338a05d1e83..efd8525af9e 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;