arm-trusted-firmware/services/std_svc/spmd
Andre Przywara 6e4da01ffb spmd: Fix signedness comparison warning
With -Wsign-compare, compilers issue a warning in the SPMD code:
====================
services/std_svc/spmd/spmd_pm.c:35:22: error: comparison of integer
expressions of different signedness: 'int' and 'unsigned int'
[-Werror=sign-compare]
   35 |  if ((id < 0) || (id >= PLATFORM_CORE_COUNT)) {
      |                      ^~
cc1: all warnings being treated as errors
====================

Since we just established that "id" is positive, we can safely cast it
to an unsigned type to make the comparison have matching types.

Change-Id: I6ef24804c88136d7e3f15de008e4fea854f10ffe
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2020-10-02 12:14:02 +00:00
..
aarch64 SPMD: add SPM dispatcher based upon SPCI Beta 0 spec 2020-02-10 14:09:21 +00:00
spmd.mk SPMD: register the SPD PM hooks 2020-08-20 18:06:06 +01:00
spmd_main.c Merge "spmd: remove assert for SPMC PC value" into integration 2020-09-17 19:48:27 +00:00
spmd_pm.c spmd: Fix signedness comparison warning 2020-10-02 12:14:02 +00:00
spmd_private.h SPMC: embed secondary core ep info into to SPMC context 2020-08-20 18:06:06 +01:00