arm-trusted-firmware/plat
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
..
allwinner allwinner: Remove unused include path 2019-12-29 12:44:20 -06:00
amlogic Merge changes from topic "amlogic-g12a" into integration 2019-09-27 09:53:40 +00:00
arm Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
common Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
hisilicon hikey: fix to load FIP by partition table. 2019-09-18 18:18:57 +08:00
imx imx: Fix multiple definition of ipc_handle 2019-12-04 02:59:03 -06:00
intel/soc Merge changes from topic "mailbox-fixes" into integration 2019-12-19 17:33:03 +00:00
layerscape Enable -Wshadow always 2019-11-19 08:53:16 -06:00
marvell delay: timeout detection support 2019-10-03 18:57:25 +00:00
mediatek mediatek: mt8183: add Vmodem/Vcore DVS init level 2019-12-26 11:12:52 +08:00
nvidia/tegra spm: Remove SPM Alpha 1 prototype and support files 2019-12-20 16:03:32 +00:00
qemu qemu/qemu_sbsa: Adding memory mapping for both FLASH0/FLASH1 2019-10-01 17:24:06 +02:00
renesas/rcar Enable -Wshadow always 2019-11-19 08:53:16 -06:00
rockchip Merge "rockchip: rk3328: Enable workaround for erratum 855873" into integration 2020-01-02 09:52:37 +00:00
rpi rpi4: Add stdout-path to device tree 2019-09-25 11:45:35 +01:00
socionext uniphier: run BL33 at EL2 2019-12-26 12:14:03 +09:00
st plat/st: Fix incorrect return value 2019-11-27 10:22:51 +00:00
ti/k3 ti: k3: common: Add PIE support 2019-10-29 14:27:11 +00:00
xilinx Enable -Wlogical-op always 2019-11-19 08:53:21 -06:00