aboutsummaryrefslogtreecommitdiff
path: root/include/command.h
diff options
context:
space:
mode:
authorSimon Glass2023-09-27 08:22:37 -0600
committerTom Rini2023-10-06 14:38:13 -0400
commitbe5951461c23111b343348401defd1d05227a75e (patch)
treedda7de1743f13acd2cb9d63c25223b36400d7860 /include/command.h
parent14d9f63dcf88ab4e096496aa15898df1392aef0c (diff)
command: Include a required header in command.h
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>
Diffstat (limited to 'include/command.h')
-rw-r--r--include/command.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/command.h b/include/command.h
index ae7bb4a30b0..34ea989b39b 100644
--- a/include/command.h
+++ b/include/command.h
@@ -25,6 +25,10 @@
#endif
#ifndef __ASSEMBLY__
+
+/* For ARRAY_SIZE() */
+#include <linux/kernel.h>
+
/*
* Monitor Command Table
*/