summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-09-17 15:11:22 +0300
committerTom Rini <trini@konsulko.com>2021-10-03 21:40:56 +0300
commitf5164f6b255a16c856af91b21f432292b8ac8542 (patch)
treed30e7f8a0032a8ac26cbd7aeba5e119e1b43363f /cmd
parent7f76084e2b62e5cdccd1ed30107fab7eb695edb6 (diff)
downloadu-boot-f5164f6b255a16c856af91b21f432292b8ac8542.tar.xz
pci: pci_bar_show 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 'cmd')
-rw-r--r--cmd/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/pci.c b/cmd/pci.c
index af75a6cfff..ebe7c0fc53 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -59,7 +59,7 @@ static void pci_show_regs(struct udevice *dev, struct pci_reg_info *regs)
}
}
-int pci_bar_show(struct udevice *dev)
+static int pci_bar_show(struct udevice *dev)
{
u8 header_type;
int bar_cnt, bar_id, mem_type;