]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit697c8ffb79a4955bcebb97ff872390558bfb9301
tree7098f219eaac609a2bedfbfd893450088a0bb5a5
parent7346af36f46e032aa0d547815632ac2523e267d0
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 <heinrich.schuchardt@canonical.com>
disk/disk-uclass.c