aboutsummaryrefslogtreecommitdiff
path: root/disk/disk-uclass.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt2022-07-02 14:07:48 +0200
committerHeinrich Schuchardt2022-07-02 14:19:09 +0200
commit054de212cef6a5bfc2b91083d10451c892ce7714 (patch)
tree7098f219eaac609a2bedfbfd893450088a0bb5a5 /disk/disk-uclass.c
parent936d468b7bbc8c02071b3d0d24f9c48167cb5ce7 (diff)
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>
Diffstat (limited to 'disk/disk-uclass.c')
-rw-r--r--disk/disk-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/disk/disk-uclass.c b/disk/disk-uclass.c
index 72ff62ebf58..f3fb942a6b9 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>