Re: [PATCH] vfio: use matching sizeof type

2024-01-17 Thread Paolo Bonzini
Il gio 18 gen 2024, 06:09 Peter Xu ha scritto: > On Wed, Jan 17, 2024 at 05:03:44PM +0100, Paolo Bonzini wrote: > > Do not use uint64_t for the type of the declaration and __u64 when > > computing the number of elements in the array. > > > > Signed-off-by: Paolo Bonzini > > --- > >

Re: [PATCH] vfio: use matching sizeof type

2024-01-17 Thread Cédric Le Goater
On 1/18/24 06:09, Peter Xu wrote: On Wed, Jan 17, 2024 at 05:03:44PM +0100, Paolo Bonzini wrote: Do not use uint64_t for the type of the declaration and __u64 when computing the number of elements in the array. Signed-off-by: Paolo Bonzini --- hw/vfio/common.c | 2 +- 1 file changed, 1

Re: [PATCH] vfio: use matching sizeof type

2024-01-17 Thread Peter Xu
On Wed, Jan 17, 2024 at 05:03:44PM +0100, Paolo Bonzini wrote: > Do not use uint64_t for the type of the declaration and __u64 when > computing the number of elements in the array. > > Signed-off-by: Paolo Bonzini > --- > hw/vfio/common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] vfio: use matching sizeof type

2024-01-17 Thread Philippe Mathieu-Daudé
On 17/1/24 17:03, Paolo Bonzini wrote: Do not use uint64_t for the type of the declaration and __u64 when computing the number of elements in the array. Signed-off-by: Paolo Bonzini --- hw/vfio/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe

[PATCH] vfio: use matching sizeof type

2024-01-17 Thread Paolo Bonzini
Do not use uint64_t for the type of the declaration and __u64 when computing the number of elements in the array. Signed-off-by: Paolo Bonzini --- hw/vfio/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index