summaryrefslogtreecommitdiff
path: root/include/exception.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-07-29 18:07:22 +0200
committerHeinrich Schuchardt <[email protected]>2026-03-14 08:36:53 +0100
commit8f83a4596677fe6a3f3b587b76d460644205a922 (patch)
treea0348c6a763ab0e0acc666a585a1ceb5f74483fd /include/exception.h
parent5c83372fa6ed78e63d087c423281799758323335 (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]>
Diffstat (limited to 'include/exception.h')
-rw-r--r--include/exception.h1
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[])