[Spice-devel] [RFC 11/33] qxl_driver: fix three incompatible pointer passed warnings

Christophe Fergeau cfergeau at redhat.com
Thu Apr 28 07:21:23 PDT 2011


Seems ok, ack
On Wed, Apr 27, 2011 at 06:56:00PM +0300, Alon Levy wrote:
> ---
>  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 ff6fe97..18050fb 100644
> --- a/src/qxl_driver.c
> +++ b/src/qxl_driver.c
> @@ -906,14 +906,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);
> -    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);
> -    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, qxl);
>  
> -- 
> 1.7.4.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20110428/59f4eec0/attachment.pgp>


More information about the Spice-devel mailing list