diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-07-29 18:07:22 +0200 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-03-14 08:36:53 +0100 |
| commit | 8f83a4596677fe6a3f3b587b76d460644205a922 (patch) | |
| tree | a0348c6a763ab0e0acc666a585a1ceb5f74483fd | |
| parent | 5c83372fa6ed78e63d087c423281799758323335 (diff) | |
cmd/exception: missing include string.h
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 <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
| -rw-r--r-- | include/exception.h | 1 |
1 files changed, 1 insertions, 0 deletions
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[]) |
