From 570c71b20a195ade510f5d584c69325d2634c50b Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe Date: Tue, 17 May 2022 14:05:06 +0100 Subject: [PATCH] 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 ''; did you forget to '#include '? 8 | #include +++ |+#include 9 | cc1: all warnings being treated as errors Signed-off-by: Manish V Badarkhe Change-Id: I486bd695298798c05008158545668020babb3eca --- plat/st/stm32mp1/plat_image_load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plat/st/stm32mp1/plat_image_load.c b/plat/st/stm32mp1/plat_image_load.c index 76af0fc68..f68eb3869 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 + #include #include