[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] qxl: fix warnings on 32bit
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 1/9] qxl: fix warnings on 32bit |
Date: |
Tue, 21 Feb 2012 11:59:05 +0100 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/qxl.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/hw/qxl.c b/hw/qxl.c
index ac69125..f421a45 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -625,7 +625,7 @@ static void interface_release_resource(QXLInstance *sin,
if (ext.group_id == MEMSLOT_GROUP_HOST) {
/* host group -> vga mode update request */
- qemu_spice_destroy_update(&qxl->ssd, (void*)ext.info->id);
+ qemu_spice_destroy_update(&qxl->ssd, (void *)(intptr_t)ext.info->id);
return;
}
@@ -748,7 +748,8 @@ static void interface_async_complete(QXLInstance *sin,
uint64_t cookie)
qxl->current_async = QXL_UNDEFINED_IO;
qemu_mutex_unlock(&qxl->async_lock);
- dprint(qxl, 2, "async_complete: %d (%ld) done\n", current_async, cookie);
+ dprint(qxl, 2, "async_complete: %d (%" PRId64 ") done\n",
+ current_async, cookie);
switch (current_async) {
case QXL_IO_CREATE_PRIMARY_ASYNC:
qxl_create_guest_primary_complete(qxl);
@@ -1015,7 +1016,7 @@ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl,
int group_id)
switch (group_id) {
case MEMSLOT_GROUP_HOST:
- return (void*)offset;
+ return (void *)(intptr_t)offset;
case MEMSLOT_GROUP_GUEST:
PANIC_ON(slot >= NUM_MEMSLOTS);
PANIC_ON(!qxl->guest_slots[slot].active);
--
1.7.1
- [Qemu-devel] [PULL] spice patch queue, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 6/9] spice: support ipv6 channel address in monitor events and in spice info, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 1/9] qxl: fix warnings on 32bit,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 2/9] qxl: don't render stuff when the vm is stopped., Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 5/9] Add SPICE support to add_client monitor command, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 3/9] qxl: set only off-screen surfaces dirty instead of the whole vram, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 4/9] qxl: make sure primary surface is saved on migration also in compat mode, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 7/9] qxl: drop vram bar minimum size, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 8/9] qxl: move ram size init to new function, Gerd Hoffmann, 2012/02/21
- [Qemu-devel] [PATCH 9/9] qxl: add user-friendly bar size properties, Gerd Hoffmann, 2012/02/21
- Re: [Qemu-devel] [PULL] spice patch queue, Anthony Liguori, 2012/02/22