]> git.baikalelectronics.ru Git - uboot.git/commitdiff
disk: honor CONFIG_SYS_64BIT_LBA
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 2 Jul 2022 12:07:48 +0000 (14:07 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 2 Jul 2022 12:19:09 +0000 (14:19 +0200)
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

index 72ff62ebf5816568ffa54c9e8ebf6d986ee2d066..f3fb942a6b94cc46285aff2581a67e00d39ebc41 100644 (file)
@@ -8,6 +8,7 @@
 
 #define LOG_CATEGORY UCLASS_PARTITION
 
+#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <log.h>