spice: fix 32bit build
PATCH 1/1 spice: fix 32bit build
Signed-off-by Gerd Hoffmann <[email protected]>
--- hw/display/qxl.c | 2 +- ui/spice-display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
hw/display/qxl.c +1 -1
@@ -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);
ui/spice-display.c +1 -1
@@ -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);
Signature · 1 line
1.8.3.1
Quoted 1 line · On Fri, 20 Jun 2014 08:12:44 +0200 Gerd Hoffmann <[email protected]> wrote:
Signed-off-by Gerd Hoffmann <[email protected]>
Tested-by Luiz Capitulino <[email protected]>
Quoted 31 lines
--- hw/display/qxl.c | 2 +- ui/spice-display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)hw/display/qxl.c +1
-1@@ -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);ui/spice-display.c +1
-1@@ -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);
Quoted 6 lines · Luiz Capitulino
Quoted 1 line · On Fri, 20 Jun 2014 08:12:44 +0200 Gerd Hoffmann <[email protected]> wrote:
Signed-off-by Gerd Hoffmann <[email protected]>Tested-by Luiz Capitulino <[email protected]>
Thanks; applied directly to master as a buildfix.
-- PMM
Quoted 9 lines · On Fri, 20 Jun 2014 16:57:11 +0100 Peter Maydell <[email protected]>…
Quoted 6 lines · Luiz Capitulino
Quoted 1 line · On Fri, 20 Jun 2014 08:12:44 +0200 Gerd Hoffmann <[email protected]> wrote:
Signed-off-by Gerd Hoffmann <[email protected]>Tested-by Luiz Capitulino <[email protected]>Thanks; applied directly to master as a buildfix.
Cool. I'll be even happier with you do this for my softfloat fixes too.