]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(st): include utils.h to solve compilation error
authorYann Gautier <yann.gautier@st.com>
Mon, 12 Dec 2022 13:53:45 +0000 (14:53 +0100)
committerYann Gautier <yann.gautier@st.com>
Mon, 12 Dec 2022 14:15:38 +0000 (15:15 +0100)
If compiling with STM32MP13 with DECRYPTION_SUPPORT != none, there is
a compilation error:
plat/st/common/stm32mp_crypto_lib.c:
 In function 'plat_get_enc_key_info':
plat/st/common/stm32mp_crypto_lib.c:532:25:
 error: implicit declaration of function 'zeromem'
 [-Werror=implicit-function-declaration]
  532 |                         zeromem(key, *key_len);
      |                         ^~~~~~~

Adding #include <lib/utils.h> solves the error.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I0a20c5632f0379612149333e69875369d4cfca15

plat/st/common/stm32mp_crypto_lib.c

index d6442427859ec23ecf1d1114420a49111cb357b2..acfe70165631a4f357709db00038586a017f9337 100644 (file)
@@ -16,6 +16,7 @@
 #include <drivers/st/stm32_pka.h>
 #include <drivers/st/stm32_rng.h>
 #include <drivers/st/stm32_saes.h>
+#include <lib/utils.h>
 #include <lib/xlat_tables/xlat_tables_v2.h>
 #include <mbedtls/asn1.h>
 #include <mbedtls/md.h>