From: Heinrich Schuchardt Date: Sat, 2 Jul 2022 12:07:48 +0000 (+0200) Subject: disk: honor CONFIG_SYS_64BIT_LBA X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=054de212cef6a5bfc2b91083d10451c892ce7714;p=u-boot.git disk: honor CONFIG_SYS_64BIT_LBA 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 --- 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 #include #include #include