fix(rmm-eac5): fix MISRA C defects
Fixes MISRA C 2012 Rule 2.3, 12.1 and 18.4 violations.
Change-Id: I7b96776da05c636fde89d915b0aae5a7134baab4
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
diff --git a/plat/common/src/plat_common_init.c b/plat/common/src/plat_common_init.c
index 2e51d7b..ecb3c19 100644
--- a/plat/common/src/plat_common_init.c
+++ b/plat/common/src/plat_common_init.c
@@ -37,17 +37,17 @@
#define RMM_CODE MAP_REGION_FLAT( \
RMM_CODE_START, \
RMM_CODE_SIZE, \
- MT_CODE | MT_REALM)
+ (MT_CODE | MT_REALM))
#define RMM_RO MAP_REGION_FLAT( \
RMM_RO_START, \
RMM_RO_SIZE, \
- MT_RO_DATA | MT_REALM)
+ (MT_RO_DATA | MT_REALM))
#define RMM_RW MAP_REGION_FLAT( \
RMM_RW_START, \
RMM_RW_SIZE, \
- MT_RW_DATA | MT_REALM)
+ (MT_RW_DATA | MT_REALM))
/*
* Leave an invalid page between the end of RMM memory and the beginning
@@ -64,7 +64,7 @@
0U, \
RMM_SHARED_BUFFER_START, \
0U, \
- MT_RW_DATA | MT_REALM)
+ (MT_RW_DATA | MT_REALM))
/* Number of common memory mapping regions */
#define COMMON_REGIONS (4U)