From 0d33d38334cae909a66c74187a36b5833afb8093 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 3 Oct 2022 09:30:34 +0200 Subject: [PATCH] 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 Change-Id: I1fbb2d9714cbc0d0640cb5e3c5ae8201dbfbe14e --- plat/st/common/stm32cubeprogrammer_usb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plat/st/common/stm32cubeprogrammer_usb.c b/plat/st/common/stm32cubeprogrammer_usb.c index 19a6bbae8..75e803859 100644 --- a/plat/st/common/stm32cubeprogrammer_usb.c +++ b/plat/st/common/stm32cubeprogrammer_usb.c @@ -1,11 +1,12 @@ /* - * Copyright (c) 2021, STMicroelectronics - All Rights Reserved + * Copyright (c) 2021-2022, STMicroelectronics - All Rights Reserved * * SPDX-License-Identifier: BSD-3-Clause */ #include #include +#include #include