[Spice-devel] [PATCH 7/9] qxl_driver: fix three incompatible pointer passed warnings
Alon Levy
alevy at redhat.com
Fri Apr 29 02:37:00 PDT 2011
---
src/qxl_driver.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 03da906..8361726 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -905,14 +905,14 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
qxl->io_pages = (void *)((unsigned long)qxl->ram);
qxl->io_pages_physical = (void *)((unsigned long)qxl->ram_physical);
-
- qxl->command_ring = qxl_ring_create (&(ram_header->cmd_ring),
+
+ qxl->command_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->cmd_ring),
sizeof (struct QXLCommand),
QXL_COMMAND_RING_SIZE, QXL_IO_NOTIFY_CMD);
- qxl->cursor_ring = qxl_ring_create (&(ram_header->cursor_ring),
+ qxl->cursor_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->cursor_ring),
sizeof (struct QXLCommand),
QXL_CURSOR_RING_SIZE, QXL_IO_NOTIFY_CURSOR);
- qxl->release_ring = qxl_ring_create (&(ram_header->release_ring),
+ qxl->release_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->release_ring),
sizeof (uint64_t),
QXL_RELEASE_RING_SIZE, 0);
--
1.7.4.4
More information about the Spice-devel
mailing list