diff options
author | Manish V Badarkhe <manish.badarkhe@arm.com> | 2022-05-17 14:05:06 +0100 |
---|---|---|
committer | Manish V Badarkhe <manish.badarkhe@arm.com> | 2022-05-17 16:34:02 +0100 |
commit | 570c71b20a195ade510f5d584c69325d2634c50b (patch) | |
tree | a29fe0b3c511fa3d536e0b5efc7d09bab43136ae | |
parent | 4c4315e874f8182a09640613031cc5f0d6884383 (diff) | |
download | trusted-firmware-a-570c71b20a195ade510f5d584c69325d2634c50b.tar.gz |
fix(stm32mp1): include assert.h to fix build failure
stm32mp1 platform build failed with the error [1] in the coverity, to
fix it included assert.h file.
Including bl32/sp_min/sp_min.mk
plat/st/stm32mp1/plat_image_load.c: In function
'plat_get_bl_image_load_info':
plat/st/stm32mp1/plat_image_load.c:30:2: error: implicit declaration of
function 'assert' [-Werror=implicit-function-declaration]
30 | assert(bl33 != NULL);
| ^~~~~~
plat/st/stm32mp1/plat_image_load.c:9:1: note: 'assert' is defined in
header '<assert.h>'; did you forget to '#include <assert.h>'?
8 | #include <plat/common/platform.h>
+++ |+#include <assert.h>
9 |
cc1: all warnings being treated as errors
Signed-off-by: Manish V Badarkhe <manish.badarkhe@arm.com>
Change-Id: I486bd695298798c05008158545668020babb3eca
-rw-r--r-- | plat/st/stm32mp1/plat_image_load.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/st/stm32mp1/plat_image_load.c b/plat/st/stm32mp1/plat_image_load.c index 76af0fc68a..f68eb38693 100644 --- a/plat/st/stm32mp1/plat_image_load.c +++ b/plat/st/stm32mp1/plat_image_load.c @@ -4,6 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#include <assert.h> + #include <common/desc_image_load.h> #include <plat/common/platform.h> |