]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: fsl: lx2160a: unused variable gic_lpi_base
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 11 Apr 2020 08:57:09 +0000 (10:57 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 20 Apr 2020 08:05:11 +0000 (13:35 +0530)
If the board is configured without CONFIG_GIC_V3_ITS, an error occurs:

board/freescale/lx2160a/lx2160a.c: In function ‘ft_board_setup’:
board/freescale/lx2160a/lx2160a.c:673:6: error: unused variable
‘gic_lpi_base’ [-Werror=unused-variable]
  673 |  u64 gic_lpi_base;
      |      ^~~~~~~~~~~~

Let's define the variable as __maybe_unused.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/lx2160a/lx2160a.c

index 4b20bb440f724eaef11e79618da200aa2d2879b7..23ea1b6f16aa31cb84708421c9db25da3152bf27 100644 (file)
@@ -670,7 +670,7 @@ int ft_board_setup(void *blob, bd_t *bd)
        u64 mc_memory_base = 0;
        u64 mc_memory_size = 0;
        u16 total_memory_banks;
-       u64 gic_lpi_base;
+       u64 __maybe_unused gic_lpi_base;
 
        ft_cpu_setup(blob, bd);