From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA
Date: Mon, 4 Jul 2022 09:30:24 +0900 [thread overview]
Message-ID: <20220704003024.GA6321@laputa> (raw)
In-Reply-To: <20220702122021.30129-1-heinrich.schuchardt@canonical.com>
On Sat, Jul 02, 2022 at 02:20:21PM +0200, Heinrich Schuchardt wrote:
> Without the patch for qemu-x86_defconfig:
>
> * sizeof(lbaint_t) = 4 in dev_read()
> * sizeof(lbaint_t) = 8 in blkcache_read()
>
> CONFIG_SYS_64BIT_LBA is defined in common.h via
> include/configs/x86-common.h:22.
>
> We have to include common.h before including blk.h.
Well, if so, why not include common.h (or config.h?) in blk.h
since lbaint_t is defined in blk.h which directly depends on some CONFIG_*?
(This fact is not trivial to developers.)
Otherwise, the same issue arises somewhere else again.
Thanks,
-Takahiro Akashi
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> disk/disk-uclass.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/disk/disk-uclass.c b/disk/disk-uclass.c
> index 72ff62ebf5..f3fb942a6b 100644
> --- a/disk/disk-uclass.c
> +++ b/disk/disk-uclass.c
> @@ -8,6 +8,7 @@
>
> #define LOG_CATEGORY UCLASS_PARTITION
>
> +#include <common.h>
> #include <blk.h>
> #include <dm.h>
> #include <log.h>
> --
> 2.36.1
>
next prev parent reply other threads:[~2022-07-04 0:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-02 12:20 [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA Heinrich Schuchardt
2022-07-04 0:30 ` AKASHI Takahiro [this message]
2022-07-04 1:03 ` 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=20220704003024.GA6321@laputa \
--to=takahiro.akashi@linaro.org \
--cc=heinrich.schuchardt@canonical.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.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