diff mbox series

board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support

Message ID 1586942631-25531-1-git-send-email-wasim.khan@nxp.com
State New
Headers show
Series board: fsl: lx2160a: define gic_lpi_base with CONFIG_GIC_V3_ITS support | expand

Commit Message

Wasim Khan April 15, 2020, 9:23 a.m. UTC
define gic_lpi_base variable when CONFIG_GIC_V3_ITS support is enable.
This avoids compilation warnings when CONFIG_GIC_V3_ITS is not enabled.

Signed-off-by: Wasim Khan <wasim.khan at nxp.com>
---
 board/freescale/lx2160a/lx2160a.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Priyanka Jain (OSS) April 16, 2020, 7:14 a.m. UTC | #1
>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Wasim Khan
>Sent: Wednesday, April 15, 2020 2:54 PM
>To: Priyanka Jain <priyanka.jain at nxp.com>
>Cc: u-boot at lists.denx.de; Wasim Khan <wasim.khan at nxp.com>
>Subject: [PATCH] board: fsl: lx2160a: define gic_lpi_base with
>CONFIG_GIC_V3_ITS support
>
>define gic_lpi_base variable when CONFIG_GIC_V3_ITS support is enable.
>This avoids compilation warnings when CONFIG_GIC_V3_ITS is not enabled.
>
>Signed-off-by: Wasim Khan <wasim.khan at nxp.com>
>---
> board/freescale/lx2160a/lx2160a.c | 2 ++
> 1 file changed, 2 insertions(+)
>
>diff --git a/board/freescale/lx2160a/lx2160a.c
>b/board/freescale/lx2160a/lx2160a.c
>index 4b20bb4..a8c45b9 100644
>--- a/board/freescale/lx2160a/lx2160a.c
>+++ b/board/freescale/lx2160a/lx2160a.c
>@@ -670,7 +670,9 @@ int ft_board_setup(void *blob, bd_t *bd)
> 	u64 mc_memory_base = 0;
> 	u64 mc_memory_size = 0;
> 	u16 total_memory_banks;
>+#ifdef CONFIG_GIC_V3_ITS
> 	u64 gic_lpi_base;
>+#endif
>
> 	ft_cpu_setup(blob, bd);
>
>--
>2.7.4
Similar changes were send by Zhiqiang. Kindly check.
Also it would be good if you review Z.Q.Hou patcheset of GIC.

Regards
Priyanka
diff mbox series

Patch

diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
index 4b20bb4..a8c45b9 100644
--- a/board/freescale/lx2160a/lx2160a.c
+++ b/board/freescale/lx2160a/lx2160a.c
@@ -670,7 +670,9 @@  int ft_board_setup(void *blob, bd_t *bd)
 	u64 mc_memory_base = 0;
 	u64 mc_memory_size = 0;
 	u16 total_memory_banks;
+#ifdef CONFIG_GIC_V3_ITS
 	u64 gic_lpi_base;
+#endif
 
 	ft_cpu_setup(blob, bd);