pci: pcie_layerscape_fixup_common: lx2_board_fix_fdt can be static
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 17 Sep 2021 12:11:30 +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>
drivers/pci/pcie_layerscape_fixup_common.c

index 08dac76..3216a20 100644 (file)
@@ -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;