[PATCH 11/11] pci: pcie_layerscape_fixup_common: lx2_board_fix_fdt can be static
Vladimir Oltean
vladimir.oltean at nxp.com
Fri Sep 17 14:11:30 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>
---
drivers/pci/pcie_layerscape_fixup_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c
index 08dac7632b0f..3216a20027a8 100644
--- a/drivers/pci/pcie_layerscape_fixup_common.c
+++ b/drivers/pci/pcie_layerscape_fixup_common.c
@@ -30,7 +30,7 @@ void ft_pci_setup(void *blob, struct bd_info *bd)
}
#if defined(CONFIG_FSL_LAYERSCAPE)
-int lx2_board_fix_fdt(void *fdt)
+static int lx2_board_fix_fdt(void *fdt)
{
char *reg_name, *old_str, *new_str;
const char *reg_names;
--
2.25.1
More information about the U-Boot
mailing list