arm-trusted-firmware/services/std_svc
Sudeep Holla a869e2dc45 fix(spmd): fix build failure due to redefinition
Clang build breaks with the following warning:

  |  In file included from services/std_svc/spmd/spmd_logical_sp.c:15:
  |  include/services/el3_spmd_logical_sp.h:15:38: error: redefinition of
  |    typedef 'spmd_spm_core_context_t' is a C11 feature [-Werror,-Wtypedef-redefinition].
  |     15 | typedef struct spmd_spm_core_context spmd_spm_core_context_t;
  |        |                                      ^
  |  services/std_svc/spmd/spmd_private.h:58:3: note: previous definition is here
  |     58 | } spmd_spm_core_context_t;
  |        |   ^
  |    CC      services/std_svc/std_svc_setup.c
  |  1 error generated.
  |  In file included from services/std_svc/spmd/spmd_main.c:35:
  |  services/std_svc/spmd/spmd_private.h:58:3: error: redefinition of typedef
  |    'spmd_spm_core_context_t' is a C11 feature [-Werror,-Wtypedef-redefinition]
  |     58 | } spmd_spm_core_context_t;
  |        |   ^
  |  include/services/el3_spmd_logical_sp.h:15:38: note: previous definition is here
  |     15 | typedef struct spmd_spm_core_context spmd_spm_core_context_t;
  |        |                                      ^
  |  1 error generated.

A structure 'spmd_spm_core_context_t' defined in 'spmd_private.h' is
also declared in 'el3_spmd_logical_sp.h' as it is used in a couple of
function declarations. These function declarations can be moved to
spmd_private.h as they are not needed elsewhere.

Change-Id: Ic6b9a277abe00cb7129f671570abf7255be62dfa
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2024-12-03 16:02:21 +00:00
..
drtm fix(drtm): do cache maintenance before launching DLME 2024-09-19 11:20:35 +02:00
errata_abi refactor(errata-abi): move EXTRACT_PARTNUM to arch.h 2024-08-17 09:38:31 +01:00
rmmd feat(rmmd): el3 token sign during attestation 2024-10-15 08:20:28 -07:00
sdei fix(sdei): fix a crash when attempting to bind more events than are available 2024-08-27 09:11:26 +01:00
spm fix(el3-spmc): use write_el1_ctx_timer() macro to set cntkctl_el1 value 2024-09-20 13:50:16 +01:00
spmd fix(spmd): fix build failure due to redefinition 2024-12-03 16:02:21 +00:00
trng refactor(trng): discarding the used entropy bits 2022-11-14 10:08:56 +00:00
pci_svc.c SMCCC/PCI: Handle std svc boilerplate 2021-05-25 14:49:08 +02:00
std_svc_setup.c fix(std_svc): continue boot if rmmd_setup fails 2024-07-21 11:41:14 +00:00