|
Hans de Goede |
56753f |
From 2b4d2ccd83280b22d2fea0801e11af5a944a135d Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
56753f |
From: Peter Maydell <peter.maydell@linaro.org>
|
|
Hans de Goede |
56753f |
Date: Wed, 7 Mar 2012 13:36:48 +0000
|
|
Hans de Goede |
56753f |
Subject: [PATCH 429/434] ui/spice-display.c: Fix compilation warnings on 32
|
|
Hans de Goede |
56753f |
bit hosts
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
Fix compilation failures ("cast from pointer to integer of
|
|
Hans de Goede |
56753f |
different size [-Werror=pointer-to-int-cast]") by using
|
|
Hans de Goede |
56753f |
uintptr_t instead.
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Hans de Goede |
56753f |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
Hans de Goede |
56753f |
---
|
|
Hans de Goede |
56753f |
ui/spice-display.c | 12 ++++++------
|
|
Hans de Goede |
56753f |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
diff --git a/ui/spice-display.c b/ui/spice-display.c
|
|
Hans de Goede |
56753f |
index 28d6d4a..6d7563f 100644
|
|
Hans de Goede |
56753f |
--- a/ui/spice-display.c
|
|
Hans de Goede |
56753f |
+++ b/ui/spice-display.c
|
|
Hans de Goede |
56753f |
@@ -80,8 +80,8 @@ void qemu_spice_add_memslot(SimpleSpiceDisplay *ssd, QXLDevMemSlot *memslot,
|
|
Hans de Goede |
56753f |
|
|
Hans de Goede |
56753f |
if (async != QXL_SYNC) {
|
|
Hans de Goede |
56753f |
spice_qxl_add_memslot_async(&ssd->qxl, memslot,
|
|
Hans de Goede |
56753f |
- (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
- QXL_IO_MEMSLOT_ADD_ASYNC));
|
|
Hans de Goede |
56753f |
+ (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
+ QXL_IO_MEMSLOT_ADD_ASYNC));
|
|
Hans de Goede |
56753f |
} else {
|
|
Hans de Goede |
56753f |
ssd->worker->add_memslot(ssd->worker, memslot);
|
|
Hans de Goede |
56753f |
}
|
|
Hans de Goede |
56753f |
@@ -100,8 +100,8 @@ void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,
|
|
Hans de Goede |
56753f |
trace_qemu_spice_create_primary_surface(ssd->qxl.id, id, surface, async);
|
|
Hans de Goede |
56753f |
if (async != QXL_SYNC) {
|
|
Hans de Goede |
56753f |
spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface,
|
|
Hans de Goede |
56753f |
- (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
- QXL_IO_CREATE_PRIMARY_ASYNC));
|
|
Hans de Goede |
56753f |
+ (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
+ QXL_IO_CREATE_PRIMARY_ASYNC));
|
|
Hans de Goede |
56753f |
} else {
|
|
Hans de Goede |
56753f |
ssd->worker->create_primary_surface(ssd->worker, id, surface);
|
|
Hans de Goede |
56753f |
}
|
|
Hans de Goede |
56753f |
@@ -113,8 +113,8 @@ void qemu_spice_destroy_primary_surface(SimpleSpiceDisplay *ssd,
|
|
Hans de Goede |
56753f |
trace_qemu_spice_destroy_primary_surface(ssd->qxl.id, id, async);
|
|
Hans de Goede |
56753f |
if (async != QXL_SYNC) {
|
|
Hans de Goede |
56753f |
spice_qxl_destroy_primary_surface_async(&ssd->qxl, id,
|
|
Hans de Goede |
56753f |
- (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
- QXL_IO_DESTROY_PRIMARY_ASYNC));
|
|
Hans de Goede |
56753f |
+ (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
|
|
Hans de Goede |
56753f |
+ QXL_IO_DESTROY_PRIMARY_ASYNC));
|
|
Hans de Goede |
56753f |
} else {
|
|
Hans de Goede |
56753f |
ssd->worker->destroy_primary_surface(ssd->worker, id);
|
|
Hans de Goede |
56753f |
}
|
|
Hans de Goede |
56753f |
--
|
|
Hans de Goede |
56753f |
1.7.10
|
|
Hans de Goede |
56753f |
|