[PATCH 05/11] pci: pciinfo_header can be static

Vladimir Oltean vladimir.oltean at nxp.com
Fri Sep 17 14:11:24 CEST 2021


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 at nxp.com>
---
 cmd/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/pci.c b/cmd/pci.c
index 7febff497c54..cfabdc0f3012 100644
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -251,7 +251,7 @@ static void pci_header_show(struct udevice *dev)
     }
 }
 
-void pciinfo_header(int busnum, bool short_listing)
+static void pciinfo_header(int busnum, bool short_listing)
 {
 	printf("Scanning PCI devices on bus %d\n", busnum);
 
-- 
2.25.1



More information about the U-Boot mailing list