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/handler.c b/runtime/core/handler.c
index 8e81fec..5871f96 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -228,6 +228,7 @@
}
}
+/* coverity[misra_c_2012_rule_8_4_violation:SUPPRESS] */
/* coverity[misra_c_2012_rule_8_7_violation:SUPPRESS] */
void handle_ns_smc(unsigned int function_id,
unsigned long arg0,
@@ -423,6 +424,7 @@
* continue from. Other register values are preserved.
* If no match is found, it aborts the RMM.
*/
+/* coverity[misra_c_2012_rule_8_4_violation:SUPPRESS] */
unsigned long handle_rmm_trap(void)
{
unsigned long esr = read_esr_el2();