fix(rmm): fix MISRA C 2012 violations
Fixes MISRA C 2012 Rules 2.1, 2.2, 8.3, 8.4,
9.1, 10.3, 10.6, 14.2, 16.5, 21.2, 21.15 and
21.18 violations.
Change-Id: I995f1f6d3d7268b46a04065579c486d9bea72e5f
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
diff --git a/runtime/core/init.c b/runtime/core/init.c
index 551622f..69783e9 100644
--- a/runtime/core/init.c
+++ b/runtime/core/init.c
@@ -37,6 +37,7 @@
EXTRACT(PMCR_EL0_N, read_pmcr_el0())));
}
+/* coverity[misra_c_2012_rule_8_4_violation:SUPPRESS] */
/* coverity[misra_c_2012_rule_8_7_violation:SUPPRESS] */
void rmm_warmboot_main(void)
{
@@ -51,6 +52,12 @@
slot_buf_finish_warmboot_init();
}
+/*
+ * This function is called from rmm_entry() in head.S
+ * and should be defined with external linkage, no
+ * compatible declaration is required.
+ */
+/* coverity[misra_c_2012_rule_8_4_violation:SUPPRESS] */
/* coverity[misra_c_2012_rule_8_7_violation:SUPPRESS] */
void rmm_main(void)
{