arm-trusted-firmware/lib
Deepika Bhavnani 5b33ad174a Unify type of "cpu_idx" across PSCI module.
NOTE for platform integrators:
   API `plat_psci_stat_get_residency()` third argument
   `last_cpu_idx` is changed from "signed int" to the
   "unsigned int" type.

Issue / Trouble points
1. cpu_idx is used as mix of `unsigned int` and `signed int` in code
with typecasting at some places leading to coverity issues.

2. Underlying platform API's return cpu_idx as `unsigned int`
and comparison is performed with platform specific defines
`PLAFORM_xxx` which is not consistent

Misra Rule 10.4:
The value of a complex expression of integer type may only be cast to
a type that is narrower and of the same signedness as the underlying
type of the expression.

Based on above points, cpu_idx is kept as `unsigned int` to match
the API's and low-level functions and platform defines are updated
where ever required

Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: Ib26fd16e420c35527204b126b9b91e8babcc3a5c
2020-01-10 17:11:51 +00:00
..
aarch32 Fix Coverity #261967, Infinite loop 2019-08-06 13:06:03 +01:00
aarch64 Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
bl_aux_params Introduce lightweight BL platform parameter library 2019-07-18 16:42:40 -07:00
compiler-rt compiler_rt: Import lshrdi3.c file 2018-11-06 15:42:51 +01:00
coreboot Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
cpus Workaround for Hercules erratum 1688305 2019-12-23 11:21:16 -06:00
debugfs debugfs: add SMC channel 2019-12-18 09:59:12 +01:00
el3_runtime aarch64: Fix stack pointer maintenance on EA handling path 2019-12-18 08:47:10 +01:00
extensions TF-A: Add support for ARMv8.3-PAuth in BL1 SMC calls and BL2U 2019-10-03 14:43:55 +01:00
libc libc: add memrchr 2019-12-11 08:51:26 +01:00
libfdt libfdt: Downgrade to version 1.4.6-9 2018-10-30 13:42:13 +00:00
locks Fix the CAS spinlock implementation 2019-10-04 10:19:35 +02:00
optee Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
pmf Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
romlib Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
semihosting Remove several warnings reported with W=2 2019-04-01 10:43:42 +01:00
stack_protector Disable stack protection explicitly 2019-10-20 14:59:09 -04:00
utils plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
xlat_tables Coding guideline suggest not to use unsigned long 2019-11-12 11:14:18 -06:00
xlat_tables_v2 Coding guideline suggest not to use unsigned long 2019-11-12 11:14:18 -06:00
zlib Sanitise includes across codebase 2019-01-04 10:43:17 +00:00