[PATCH v3 37/38] command: Include a required header in command.h
Simon Glass
sjg at chromium.org
Sun Sep 24 21:25:22 CEST 2023
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 at chromium.org>
---
(no changes since v1)
include/command.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/command.h b/include/command.h
index ae7bb4a30b05..8aebf7a95bf8 100644
--- a/include/command.h
+++ b/include/command.h
@@ -15,6 +15,9 @@
#include <linux/compiler_attributes.h>
+/* For ARRAY_SIZE() */
+#include <linux/kernel.h>
+
#ifndef NULL
#define NULL 0
#endif
--
2.42.0.515.g380fc7ccd1-goog
More information about the U-Boot
mailing list