]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
command: Include a required header in command.h
authorSimon Glass <sjg@chromium.org>
Wed, 27 Sep 2023 14:22:37 +0000 (08:22 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
This uses ARRAY_SIZE() but does not include the header file which declares
it. Fix this, so that command.h can be included without common.h

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/bootm.c
include/command.h

index b1c3afe0a3adafbce9ec99b734befa464633c5f2..8f96a80d4259384f16bf204d7e9980fd9a2e574e 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <bootstage.h>
 #include <cli.h>
+#include <command.h>
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
@@ -29,7 +30,6 @@
 #include "mkimage.h"
 #endif
 
-#include <command.h>
 #include <bootm.h>
 #include <image.h>
 
index ae7bb4a30b05c18d3806f83e83dbad7855cb85b9..34ea989b39b4fe3667895edd30692941aeeae411 100644 (file)
 #endif
 
 #ifndef        __ASSEMBLY__
+
+/* For ARRAY_SIZE() */
+#include <linux/kernel.h>
+
 /*
  * Monitor Command Table
  */