commit | 21cf360cbce38233765c6cc776fad1ecba71950e | [log] [tgz] |
---|---|---|
author | Olivier Deprez <olivier.deprez@arm.com> | Thu Jul 30 17:18:33 2020 +0200 |
committer | Olivier Deprez <olivier.deprez@arm.com> | Fri Jul 31 08:53:02 2020 +0000 |
tree | 5a037500c4ccb5ea7924af7e32cdc00e66e4c428 | |
parent | cec0069c93be8280f71823e595ce5a373a7ac3df [diff] [blame] |
spm-mm: fix MISRA C-2012 Rule 2.3 spm_mm_boot_info_t defined but never used. Following merge of patchset [1] the spm_mm_boot_info_t structure is included in few platform files unconditionally even when SPM_MM option is disabled. [1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/2647 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I68bc034c9348b5d9bcfd2e5217b781df5ad1b369
diff --git a/plat/arm/board/fvp/fvp_common.c b/plat/arm/board/fvp/fvp_common.c index c5fae56..cb717e0 100644 --- a/plat/arm/board/fvp/fvp_common.c +++ b/plat/arm/board/fvp/fvp_common.c
@@ -18,7 +18,10 @@ #include <plat/arm/common/plat_arm.h> #include <plat/common/platform.h> #include <platform_def.h> + +#if SPM_MM #include <services/spm_mm_partition.h> +#endif #include "fvp_private.h"