[PATCH 1/8] ARM: optee-early: Fix 'memcpy' implicit declaration
Alexander Shiyan
eagle.alexander923 at gmail.com
Thu Jun 9 22:40:43 PDT 2022
arch/arm/lib32/optee-early.c: In function 'start_optee_early':
arch/arm/lib32/optee-early.c:26:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
memcpy((void *)hdr->init_load_addr_lo, tee + sizeof(*hdr), hdr->init_size);
Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
arch/arm/lib32/optee-early.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/lib32/optee-early.c b/arch/arm/lib32/optee-early.c
index 197325b8a0..735d829c99 100644
--- a/arch/arm/lib32/optee-early.c
+++ b/arch/arm/lib32/optee-early.c
@@ -9,6 +9,7 @@
#include <asm/setjmp.h>
#include <tee/optee.h>
#include <debug_ll.h>
+#include <string.h>
static jmp_buf tee_buf;
--
2.32.0
More information about the barebox
mailing list