Hi Sandrine,
Thanks for responding.
I will put return "EL1" into an else statement here in this file, but I am getting in the file xlat_tables_common.c also No non-empty terminating "else" statement where I have to add empty else. Below attached the code, please suggest in this situation.
misra_c_2012_rule_15_7_violation: No non-empty terminating "else" statement. if (mm->base_va > (base_va + level_size - 1U)) { /* Next region is after this area. Nothing to map yet */ desc = INVALID_DESC; /* Make sure that the current level allows block descriptors */ } else if (level >= XLAT_BLOCK_LEVEL_MIN) { /* * Try to get attributes of this area. It will fail if * there are partially overlapping regions. On success, * it will return the innermost region's attributes. */ unsigned int attr; unsigned int r = mmap_region_attr(mm, base_va, level_size, &attr); if (r == 0U) { desc = mmap_desc(attr, base_va - mm->base_va + mm->base_pa, level); } }
Regards, Nithin