* [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA
@ 2022-07-02 12:20 Heinrich Schuchardt
2022-07-04 0:30 ` AKASHI Takahiro
0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2022-07-02 12:20 UTC (permalink / raw)
To: Tom Rini; +Cc: AKASHI Takahiro, Simon Glass, u-boot, Heinrich Schuchardt
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.
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA
2022-07-02 12:20 [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA Heinrich Schuchardt
@ 2022-07-04 0:30 ` AKASHI Takahiro
2022-07-04 1:03 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: AKASHI Takahiro @ 2022-07-04 0:30 UTC (permalink / raw)
To: Heinrich Schuchardt; +Cc: Tom Rini, Simon Glass, u-boot
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA
2022-07-04 0:30 ` AKASHI Takahiro
@ 2022-07-04 1:03 ` Tom Rini
0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-07-04 1:03 UTC (permalink / raw)
To: AKASHI Takahiro; +Cc: Heinrich Schuchardt, Simon Glass, u-boot
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
On Mon, Jul 04, 2022 at 09:30:24AM +0900, AKASHI Takahiro wrote:
> 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.
The complete solution, as found in -next, is to migrate to Kconfig.
This is a stop-gap for the release.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-04 1:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-02 12:20 [PATCH 1/1] disk: honor CONFIG_SYS_64BIT_LBA Heinrich Schuchardt
2022-07-04 0:30 ` AKASHI Takahiro
2022-07-04 1:03 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.