arm-trusted-firmware/services/std_svc
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
..
sdei plat/arm/fvp: Support performing SDEI platform setup in runtime 2020-05-15 10:05:06 -05:00
spm_mm xlat_tables_v2: add base table section name parameter for spm_mm 2020-06-02 14:53:06 +09:00
spmd spmd: Fix signedness comparison warning 2020-10-02 12:14:02 +00:00
std_svc_setup.c SPCI is now called PSA FF-A 2020-05-25 08:55:36 +00:00