We have to use IS_ENABLED() otherwise the compiler will throw an error
if CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT is not set.

Signed-off-by: Michael Walle <mich...@walle.cc>
---
 arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h 
b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
index 37e2fe4e66..522c7b89df 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/fsl_icid.h
@@ -166,7 +166,7 @@ extern int fman_icid_tbl_sz;
 
 #define SET_SEC_JR_ICID_ENTRY(jr_num, streamid) \
        SET_ICID_ENTRY( \
-               (CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT && \
+               (IS_ENABLED(CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT) && \
                (FSL_SEC_JR##jr_num##_OFFSET ==  \
                        SEC_JR3_OFFSET + CONFIG_SYS_FSL_SEC_OFFSET) \
                        ? NULL \
-- 
2.20.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to