From: Heinrich Schuchardt <xypron.g...@gmx.de> When building qemu_arm64_defconfig with CMD_EXCEPTION a build error occurs:
In file included from cmd/arm/exception64.c:87: include/exception.h: In function ‘exception_complete’: include/exception.h:41:23: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] 41 | len = strlen(argv[1]); | ^~~~~~ Add the missing include. Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodi...@linaro.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- include/exception.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/exception.h b/include/exception.h index a7f21e73d7530972eefb3255d799ed45de30c82f..0d4dff49954ba1445a16c151ab480d9859a7bea8 100644 --- a/include/exception.h +++ b/include/exception.h @@ -5,8 +5,9 @@ * Copyright (c) 2018, Heinrich Schuchardt <xypron.g...@gmx.de> */ #include <command.h> +#include <string.h> static int do_exception(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { -- 2.50.0