[U-Boot] [PATCH] armv8: fsl-layerscape: use IS_ENABLED()
Michael Walle
michael at walle.cc
Mon Oct 21 17:32:53 UTC 2019
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 <michael at 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
More information about the U-Boot
mailing list