qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type


From: Stefan Weil
Subject: Re: [Qemu-devel] [PATCH] qapi: fix qapi_dealloc_type_size parameter type
Date: Tue, 27 Nov 2012 22:24:30 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

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 <address@hidden>
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 <address@hidden>

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 <address@hidden>


---
  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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]