summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-09-17 15:11:23 +0300
committerTom Rini <trini@konsulko.com>2021-10-03 14:40:56 -0400
commita95f8ee911df637b5269c3c2a9a34302a5ec9eb2 (patch)
treee572dc1b2c6681227a809645b9576c1c3c29c00c
parentf5164f6b255a16c856af91b21f432292b8ac8542 (diff)
downloadu-boot-a95f8ee911df637b5269c3c2a9a34302a5ec9eb2.tar.gz
u-boot-a95f8ee911df637b5269c3c2a9a34302a5ec9eb2.tar.bz2
u-boot-a95f8ee911df637b5269c3c2a9a34302a5ec9eb2.zip
pci: pci_header_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>
-rw-r--r--cmd/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/pci.c b/cmd/pci.c
index ebe7c0fc53..7febff497c 100644
--- 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;