[PATCH] ARM: i.MX8M: bootrom-cmd: include missing linux/kernel.h header
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jul 22 09:26:29 PDT 2024
The header is needed for ARRAY_SIZE and kstrtoul definition, but was
only included so far indirectly via <command.h> including <linux/list.h>
itself including <linux/kernel.h>.
In preparation for removing the <linux/kernel.h> include from
<linux/list.h>, include the header directly to avoid build errors.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
Hello Sascha,
please order before
"include: list: replace full kernel.h inclusion with smaller container_of.h"
---
arch/arm/mach-imx/bootrom-cmd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/bootrom-cmd.c b/arch/arm/mach-imx/bootrom-cmd.c
index 08e393b01ae1..76455db301fe 100644
--- a/arch/arm/mach-imx/bootrom-cmd.c
+++ b/arch/arm/mach-imx/bootrom-cmd.c
@@ -8,6 +8,7 @@
#include <linux/bitfield.h>
#include <mach/imx/imx8m-regs.h>
#include <mach/imx/romapi.h>
+#include <linux/kernel.h>
/* i.MX7 and later ID field is swapped compared to i.MX6 */
#define ROM_EVENT_FORMAT_V0_RES GENMASK(31, 24)
--
2.39.2
More information about the barebox
mailing list