From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] ARM: i.MX8M: bootrom-cmd: include missing linux/kernel.h header
Date: Mon, 22 Jul 2024 18:26:29 +0200 [thread overview]
Message-ID: <20240722162629.3827946-1-a.fatoum@pengutronix.de> (raw)
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@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
next reply other threads:[~2024-07-22 16:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-22 16:26 Ahmad Fatoum [this message]
2024-07-24 8:06 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240722162629.3827946-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox