* [PATCH 1/1] xen: pvblock: honor CONFIG_SYS_64BIT_LBA
@ 2022-07-02 13:23 Heinrich Schuchardt
2022-07-04 12:19 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2022-07-02 13:23 UTC (permalink / raw)
To: Anastasiia Lukianenko, Oleksandr Andrushchenko
Cc: u-boot, Heinrich Schuchardt
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.schuchardt@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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] xen: pvblock: honor CONFIG_SYS_64BIT_LBA
2022-07-02 13:23 [PATCH 1/1] xen: pvblock: honor CONFIG_SYS_64BIT_LBA Heinrich Schuchardt
@ 2022-07-04 12:19 ` Tom Rini
2022-07-04 18:44 ` Heinrich Schuchardt
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2022-07-04 12:19 UTC (permalink / raw)
To: Heinrich Schuchardt
Cc: Anastasiia Lukianenko, Oleksandr Andrushchenko, u-boot
[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]
On Sat, Jul 02, 2022 at 03:23:42PM +0200, Heinrich Schuchardt wrote:
> 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.schuchardt@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>
Did you find a problem here, by inspection? If so, OK, I'll take this
for master. Otherwise, please drop common.h from the file and see what
includes it needs directly, given that -next has the CONFIG symbol in
question migrated to Kconfig and so solves the overall problem.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] xen: pvblock: honor CONFIG_SYS_64BIT_LBA
2022-07-04 12:19 ` Tom Rini
@ 2022-07-04 18:44 ` Heinrich Schuchardt
0 siblings, 0 replies; 3+ messages in thread
From: Heinrich Schuchardt @ 2022-07-04 18:44 UTC (permalink / raw)
To: Tom Rini; +Cc: Anastasiia Lukianenko, Oleksandr Andrushchenko, u-boot
On 7/4/22 14:19, Tom Rini wrote:
> On Sat, Jul 02, 2022 at 03:23:42PM +0200, Heinrich Schuchardt wrote:
>
>> 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.schuchardt@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>
>
> Did you find a problem here, by inspection? If so, OK, I'll take this
> for master. Otherwise, please drop common.h from the file and see what
> includes it needs directly, given that -next has the CONFIG symbol in
> question migrated to Kconfig and so solves the overall problem.
>
You already merged
054de212cef6 ("disk: honor CONFIG_SYS_64BIT_LBA").
I looked for other uses of blk.h without prior inclusion of common.h.
Migration to Kconfig does not move the definition of
CONFIG_SYS_64BIT_LBA into blk.h but keeps it in common.h. So the correct
size of lbaint_t will still depend on including common.h.
Best regards
Heinrich
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-04 18:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-02 13:23 [PATCH 1/1] xen: pvblock: honor CONFIG_SYS_64BIT_LBA Heinrich Schuchardt
2022-07-04 12:19 ` Tom Rini
2022-07-04 18:44 ` Heinrich Schuchardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.