* [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type
@ 2012-11-27 20:11 Bruce Rogers
2012-11-27 20:54 ` mdroth
2012-11-29 13:11 ` Stefan Hajnoczi
0 siblings, 2 replies; 4+ messages in thread
From: Bruce Rogers @ 2012-11-27 20:11 UTC (permalink / raw)
To: qemu-devel; +Cc: mdroth, stefanha, Bruce Rogers
The second parameter to qapi_dealloc_type_size should be a uint64_t *,
not a size_t *. This was causing our 32 bit x86 build to fail, since
warnings are treated as errors.
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
qapi/qapi-dealloc-visitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/qapi/qapi-dealloc-visitor.c b/qapi/qapi-dealloc-visitor.c
index a07b171..75214e7 100644
--- a/qapi/qapi-dealloc-visitor.c
+++ b/qapi/qapi-dealloc-visitor.c
@@ -132,7 +132,7 @@ static void qapi_dealloc_type_number(Visitor *v, double *obj, const char *name,
{
}
-static void qapi_dealloc_type_size(Visitor *v, size_t *obj, const char *name,
+static void qapi_dealloc_type_size(Visitor *v, uint64_t *obj, const char *name,
Error **errp)
{
}
--
1.7.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type
2012-11-27 20:11 [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type Bruce Rogers
@ 2012-11-27 20:54 ` mdroth
2012-11-27 21:24 ` Stefan Weil
2012-11-29 13:11 ` Stefan Hajnoczi
1 sibling, 1 reply; 4+ messages in thread
From: mdroth @ 2012-11-27 20:54 UTC (permalink / raw)
To: Bruce Rogers; +Cc: qemu-devel, stefanha
On Tue, Nov 27, 2012 at 01:11:25PM -0700, Bruce Rogers wrote:
> The second parameter to qapi_dealloc_type_size should be a uint64_t *,
> not a size_t *. This was causing our 32 bit x86 build to fail, since
> warnings are treated as errors.
>
> Signed-off-by: Bruce Rogers <brogers@suse.com>
Doh, I should've caught this in review. Yes, qapi's type generator uses
uint64_t as the underlying type for 'size', and the visitor interface
calls for uint64_t*, so that's what the implementation should use.
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
> qapi/qapi-dealloc-visitor.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/qapi/qapi-dealloc-visitor.c b/qapi/qapi-dealloc-visitor.c
> index a07b171..75214e7 100644
> --- a/qapi/qapi-dealloc-visitor.c
> +++ b/qapi/qapi-dealloc-visitor.c
> @@ -132,7 +132,7 @@ static void qapi_dealloc_type_number(Visitor *v, double *obj, const char *name,
> {
> }
>
> -static void qapi_dealloc_type_size(Visitor *v, size_t *obj, const char *name,
> +static void qapi_dealloc_type_size(Visitor *v, uint64_t *obj, const char *name,
> Error **errp)
> {
> }
> --
> 1.7.7
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type
2012-11-27 20:54 ` mdroth
@ 2012-11-27 21:24 ` Stefan Weil
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Weil @ 2012-11-27 21:24 UTC (permalink / raw)
To: mdroth; +Cc: qemu-devel, stefanha, Bruce Rogers
Am 27.11.2012 21:54, schrieb mdroth:
> On Tue, Nov 27, 2012 at 01:11:25PM -0700, Bruce Rogers wrote:
>> The second parameter to qapi_dealloc_type_size should be a uint64_t *,
>> not a size_t *. This was causing our 32 bit x86 build to fail, since
>> warnings are treated as errors.
>>
>> Signed-off-by: Bruce Rogers <brogers@suse.com>
> Doh, I should've caught this in review. Yes, qapi's type generator uses
> uint64_t as the underlying type for 'size', and the visitor interface
> calls for uint64_t*, so that's what the implementation should use.
>
> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
I have sent a similar patch this morning but just noticed that
I forgot to cc qemu-devel. Only Stefan H. and Anthony got it :-(
Anthony, as Bruce' patch was already reviewed, please
commit this one instead of my patch.
Reviewed-by: Stefan Weil <sw@weilnetz.de>
>> ---
>> qapi/qapi-dealloc-visitor.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/qapi/qapi-dealloc-visitor.c b/qapi/qapi-dealloc-visitor.c
>> index a07b171..75214e7 100644
>> --- a/qapi/qapi-dealloc-visitor.c
>> +++ b/qapi/qapi-dealloc-visitor.c
>> @@ -132,7 +132,7 @@ static void qapi_dealloc_type_number(Visitor *v, double *obj, const char *name,
>> {
>> }
>>
>> -static void qapi_dealloc_type_size(Visitor *v, size_t *obj, const char *name,
>> +static void qapi_dealloc_type_size(Visitor *v, uint64_t *obj, const char *name,
>> Error **errp)
>> {
>> }
>> --
>> 1.7.7
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type
2012-11-27 20:11 [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type Bruce Rogers
2012-11-27 20:54 ` mdroth
@ 2012-11-29 13:11 ` Stefan Hajnoczi
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2012-11-29 13:11 UTC (permalink / raw)
To: Bruce Rogers; +Cc: qemu-devel, mdroth
On Tue, Nov 27, 2012 at 01:11:25PM -0700, Bruce Rogers wrote:
> The second parameter to qapi_dealloc_type_size should be a uint64_t *,
> not a size_t *. This was causing our 32 bit x86 build to fail, since
> warnings are treated as errors.
>
> Signed-off-by: Bruce Rogers <brogers@suse.com>
> ---
> qapi/qapi-dealloc-visitor.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Sorry for the broken build.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-29 13:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 20:11 [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type Bruce Rogers
2012-11-27 20:54 ` mdroth
2012-11-27 21:24 ` Stefan Weil
2012-11-29 13:11 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).