Hi Nithin,
lib/xlat_tables/ corresponds to version 1 of the translation table library in TF-A, which is deprecated. As such, it does not get any update - other than bug / security fixes. The library will be removed in a future version of TF-A (possibly in 3.0 next year).
I strongly recommend you migrate to version 2 of the library (under lib/xlat_tables_v2/ directory). Besides, it has no violation to MISRA rule 15.7 AFAICS, according to ECLAIR tool (which is TF-A OpenCI tool for MISRA compliance checks).
Did you spot any violation to rule 15.7 in version 2 of the translation table library on your side?
Best regards, Sandrine
On 12/8/23 11:00, Nithin G via TF-A wrote:
In the file lib/xlat_tables/xlat_tables_common.c and other files, getting misra_c_2012_rule_15_7_violation: No non-empty terminating "else" statement. during the Coverity MISRA-C analysis. if() { } else if () { } Resolution: added empty else statement to resolve the issue. if() { } else if () { } else { /* added empty else */ } Is it possible to add an empty else statement in open source? Please suggest.
Regards, Nithin