From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Simon Glass <sjg@chromium.org>,
U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>,
Simon Glass <sjg@chromium.org>,
Evgeny Bachinin <EABachinin@sberdevices.ru>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Safae Ouajih <souajih@baylibre.com>
Subject: Re: [PATCH v5 39/43] command: Include a required header in command.h
Date: Sat, 30 Sep 2023 10:41:03 +0200 [thread overview]
Message-ID: <87cyy02gv4.fsf@baylibre.com> (raw)
In-Reply-To: <20230927142359.2965941-40-sjg@chromium.org>
On mer., sept. 27, 2023 at 08:22, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v5:
> - Adjust so this builds on azure
>
> boot/bootm.c | 2 +-
> include/command.h | 4 ++++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/boot/bootm.c b/boot/bootm.c
> index b1c3afe0a3a..8f96a80d425 100644
> --- a/boot/bootm.c
> +++ b/boot/bootm.c
> @@ -8,6 +8,7 @@
> #include <common.h>
> #include <bootstage.h>
> #include <cli.h>
> +#include <command.h>
> #include <cpu_func.h>
> #include <env.h>
> #include <errno.h>
> @@ -29,7 +30,6 @@
> #include "mkimage.h"
> #endif
>
> -#include <command.h>
> #include <bootm.h>
> #include <image.h>
>
> 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
> */
> --
> 2.42.0.515.g380fc7ccd1-goog
next prev parent reply other threads:[~2023-09-30 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-27 14:22 [PATCH v5 39/43] command: Include a required header in command.h Simon Glass
2023-09-30 8:41 ` Mattijs Korpershoek [this message]
2023-10-07 14:17 ` Tom Rini
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=87cyy02gv4.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=EABachinin@sberdevices.ru \
--cc=marek.vasut+renesas@mailbox.org \
--cc=marex@denx.de \
--cc=sjg@chromium.org \
--cc=souajih@baylibre.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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