]> git.dujemihanovic.xyz Git - u-boot.git/commit
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)
commit3460a6bba1dfeb48e6006a73c1aa9a6ba53a526b
treec59f8f5e8a98dbea4e55d07c020b9f5d4b1e375c
parent5706b9b56ec90cec0a33479f4743b56b5d457d75
board: fsl: lx2160a: unused variable gic_lpi_base

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