CONFIG_SYS_64BIT_LBA is defined in common.h and used to define the size of lbaint_t in blk.h. On 32-bit system not including common.h first will lead to differences in the size of lbaint_t between modules.
common.h should always be the first include. Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com> --- cmd/pvblock.c | 2 +- drivers/xen/pvblock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/pvblock.c b/cmd/pvblock.c index 56ce8b18d5..ccdd6304af 100644 --- a/cmd/pvblock.c +++ b/cmd/pvblock.c @@ -5,8 +5,8 @@ * XEN para-virtualized block device support */ -#include <blk.h> #include <common.h> +#include <blk.h> #include <command.h> /* Current I/O Device */ diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index c25c3ea4ff..c0a156fbf7 100644 --- a/drivers/xen/pvblock.c +++ b/drivers/xen/pvblock.c @@ -6,8 +6,8 @@ #define LOG_CATEGORY UCLASS_PVBLOCK -#include <blk.h> #include <common.h> +#include <blk.h> #include <dm.h> #include <dm/device-internal.h> #include <malloc.h> -- 2.36.1