|
Hans de Goede |
56753f |
From 3b36dd31d54b24e02493fdd86269ba5286086c98 Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
56753f |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Hans de Goede |
56753f |
Date: Wed, 8 Feb 2012 15:58:35 +0100
|
|
Hans de Goede |
56753f |
Subject: [PATCH 403/434] qxl: fix warnings on 32bit
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Hans de Goede |
56753f |
---
|
|
Hans de Goede |
56753f |
hw/qxl.c | 7 ++++---
|
|
Hans de Goede |
56753f |
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
diff --git a/hw/qxl.c b/hw/qxl.c
|
|
Hans de Goede |
56753f |
index e0f9d4a..4fd5e4e 100644
|
|
Hans de Goede |
56753f |
--- a/hw/qxl.c
|
|
Hans de Goede |
56753f |
+++ b/hw/qxl.c
|
|
Hans de Goede |
56753f |
@@ -628,7 +628,7 @@ static void interface_release_resource(QXLInstance *sin,
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
if (ext.group_id == MEMSLOT_GROUP_HOST) {
|
|
Hans de Goede |
56753f |
/* host group -> vga mode update request */
|
|
Hans de Goede |
56753f |
- qemu_spice_destroy_update(&qxl->ssd, (void*)ext.info->id);
|
|
Hans de Goede |
56753f |
+ qemu_spice_destroy_update(&qxl->ssd, (void *)(intptr_t)ext.info->id);
|
|
Hans de Goede |
56753f |
return;
|
|
Hans de Goede |
56753f |
}
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
@@ -751,7 +751,8 @@ static void interface_async_complete(QXLInstance *sin, uint64_t cookie)
|
|
Hans de Goede |
56753f |
qxl->current_async = QXL_UNDEFINED_IO;
|
|
Hans de Goede |
56753f |
qemu_mutex_unlock(&qxl->async_lock);
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
- dprint(qxl, 2, "async_complete: %d (%ld) done\n", current_async, cookie);
|
|
Hans de Goede |
56753f |
+ dprint(qxl, 2, "async_complete: %d (%" PRId64 ") done\n",
|
|
Hans de Goede |
56753f |
+ current_async, cookie);
|
|
Hans de Goede |
56753f |
switch (current_async) {
|
|
Hans de Goede |
56753f |
case QXL_IO_CREATE_PRIMARY_ASYNC:
|
|
Hans de Goede |
56753f |
qxl_create_guest_primary_complete(qxl);
|
|
Hans de Goede |
56753f |
@@ -1018,7 +1019,7 @@ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id)
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
switch (group_id) {
|
|
Hans de Goede |
56753f |
case MEMSLOT_GROUP_HOST:
|
|
Hans de Goede |
56753f |
- return (void*)offset;
|
|
Hans de Goede |
56753f |
+ return (void *)(intptr_t)offset;
|
|
Hans de Goede |
56753f |
case MEMSLOT_GROUP_GUEST:
|
|
Hans de Goede |
56753f |
PANIC_ON(slot >= NUM_MEMSLOTS);
|
|
Hans de Goede |
56753f |
PANIC_ON(!qxl->guest_slots[slot].active);
|
|
Hans de Goede |
56753f |
--
|
|
Hans de Goede |
56753f |
1.7.10
|
|
Hans de Goede |
56753f |
|