]> git.baikalelectronics.ru Git - arm-tf.git/commit
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)
commit377846b65e8eb946a6560f1200ca4ca0e1eb8b99
tree9be5127ad0e2b125a6e648f6224fc416e4a83dca
parentc0d68bbfbe17ed25dac24705b1eab9494e200502
fix(st): include utils.h to solve compilation error

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