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@xxxxxxxxxxxxxx> --- 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