]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(st): add missing string.h include
authorYann Gautier <yann.gautier@foss.st.com>
Mon, 3 Oct 2022 07:30:34 +0000 (09:30 +0200)
committerYann Gautier <yann.gautier@st.com>
Mon, 3 Oct 2022 08:00:03 +0000 (10:00 +0200)
commit0d33d38334cae909a66c74187a36b5833afb8093
tree91543cdb02e2c78092912bab5967eede651ce20a
parentaa9d315009fba78cb3135b06d93001b2b18cf748
fix(st): add missing string.h include

Since patch on libc refactoring, there is a compilation error with
STM32MP_USB_PROGRAMMER=1:
plat/st/common/stm32cubeprogrammer_usb.c:81:35: error:
 implicit declaration of function 'strnlen'
 [-Werror=implicit-function-declaration]
      length += strnlen((char *)&dfu->buffer[GET_PHASE_LEN],

The string.h header file should be included.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: I1fbb2d9714cbc0d0640cb5e3c5ae8201dbfbe14e
plat/st/common/stm32cubeprogrammer_usb.c