[PATCH 1/5] cmd/exception: missing include string.h

Ilias Apalodimas ilias.apalodimas at linaro.org
Thu Jul 3 15:22:38 CEST 2025


On Thu, 3 Jul 2025 at 08:20, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> 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.schuchardt at canonical.com>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
>  include/exception.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/exception.h b/include/exception.h
> index a7f21e73d75..0d4dff49954 100644
> --- a/include/exception.h
> +++ b/include/exception.h
> @@ -6,6 +6,7 @@
>   */
>
>  #include <command.h>
> +#include <string.h>
>
>  static int do_exception(struct cmd_tbl *cmdtp, int flag, int argc,
>                         char *const argv[])
> --
> 2.48.1
>


More information about the U-Boot mailing list