]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: pci_header_show can be static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 17 Sep 2021 12:11:23 +0000 (15:11 +0300)
committerTom Rini <trini@konsulko.com>
Sun, 3 Oct 2021 18:40:56 +0000 (14:40 -0400)
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>
cmd/pci.c

index ebe7c0fc5377e3bea4d87aa14281d554c4a9bd0b..7febff497c543123d18b205882145898c5abd0d3 100644 (file)
--- a/cmd/pci.c
+++ b/cmd/pci.c
@@ -223,7 +223,7 @@ static struct pci_reg_info regs_cardbus[] = {
  *
  * @dev: Bus+Device+Function number
  */
-void pci_header_show(struct udevice *dev)
+static void pci_header_show(struct udevice *dev)
 {
        unsigned long class, header_type;