From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxzAs-0006Js-KN for qemu-devel@nongnu.org; Fri, 20 Jun 2014 09:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxzAl-0004Ct-0y for qemu-devel@nongnu.org; Fri, 20 Jun 2014 09:48:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxzAk-0004CN-PF for qemu-devel@nongnu.org; Fri, 20 Jun 2014 09:48:06 -0400 Date: Fri, 20 Jun 2014 09:35:02 -0400 From: Luiz Capitulino Message-ID: <20140620093502.77af4e10@redhat.com> In-Reply-To: <1403244764-8622-1-git-send-email-kraxel@redhat.com> References: <1403244764-8622-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] spice: fix 32bit build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, Anthony Liguori On Fri, 20 Jun 2014 08:12:44 +0200 Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann Tested-by: Luiz Capitulino > --- > hw/display/qxl.c | 2 +- > ui/spice-display.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/display/qxl.c b/hw/display/qxl.c > index 736fd3c..d43aa49 100644 > --- a/hw/display/qxl.c > +++ b/hw/display/qxl.c > @@ -710,7 +710,7 @@ static void interface_release_resource(QXLInstance *sin, > > if (ext.group_id == MEMSLOT_GROUP_HOST) { > /* host group -> vga mode update request */ > - QXLCommandExt *cmdext = (void *)(ext.info->id); > + QXLCommandExt *cmdext = (void *)(intptr_t)(ext.info->id); > SimpleSpiceUpdate *update; > g_assert(cmdext->cmd.type == QXL_CMD_DRAW); > update = container_of(cmdext, SimpleSpiceUpdate, ext); > diff --git a/ui/spice-display.c b/ui/spice-display.c > index 03040b1..66e2578 100644 > --- a/ui/spice-display.c > +++ b/ui/spice-display.c > @@ -534,7 +534,7 @@ static void interface_release_resource(QXLInstance *sin, > QXLCommandExt *ext; > > dprint(2, "%s/%d:\n", __func__, ssd->qxl.id); > - ext = (void *)(rext.info->id); > + ext = (void *)(intptr_t)(rext.info->id); > switch (ext->cmd.type) { > case QXL_CMD_DRAW: > update = container_of(ext, SimpleSpiceUpdate, ext);