arm-trusted-firmware/plat/common
Arvind Ram Prakash c42d0d8754 fix(misra): fix MISRA defects
This patch resolves the MISRA issues reported in mailing list.
It addresses the following MISRA Rules violations - Rule 15.7 and
Rule 2.4.

* As per Rule 15.7, All if.. else if constructs should be terminated
with an else statement and hence the conditional block
has been changed to switch..case. Updated get_el_str() to include
all EL cases.

* As per Rule 2.4, A project should not contain unused tag declarations,
hence intr_type_desc tag is removed.

* bl31_lib_init is only used in translation unit and hence it's
declaration is removed from bl31.h and the definition is made static to
maintain visibility.

Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
Change-Id: Ica1d3041566baf51befcad5fd3714189117ba193
2024-03-07 09:38:27 -06:00
..
aarch32 build: always prefix section names with . 2023-02-20 18:29:33 +00:00
aarch64 fix(misra): fix MISRA defects 2024-03-07 09:38:27 -06:00
tbbr Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
plat_bl1_common.c refactor(measured_boot): remove passing of BL2 hash via device tree 2021-10-12 17:53:47 +01:00
plat_bl_common.c SMCCC: Introduce function to check SMCCC function availability 2020-07-26 08:16:29 +01:00
plat_gicv2.c refactor(el3-runtime): plat_ic_has_interrupt_type returns bool 2023-09-25 17:09:15 -05:00
plat_gicv3.c refactor(el3-runtime): plat_ic_has_interrupt_type returns bool 2023-09-25 17:09:15 -05:00
plat_log_common.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
plat_psci_common.c Flush dcache when storing timestamp 2020-03-27 09:41:12 -05:00
plat_spmd_manifest.c feat(spmd): map SPMC manifest region as EL3_PAS 2023-02-07 11:26:38 +00:00
ubsan.c Add UBSAN support and handlers 2019-09-11 14:15:54 +01:00