[Spice-devel,xf86-video-qxl,09/13] spiceqxl_io_port: use pointer_to_u64 (fix warning)

Submitted by Alon Levy on April 9, 2012, 5:33 p.m.

Details

Message ID 1333992799-14302-10-git-send-email-alevy@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy April 9, 2012, 5:33 p.m.
---
 src/spiceqxl_io_port.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
index 050e7b9..f599b4e 100644
--- a/src/spiceqxl_io_port.c
+++ b/src/spiceqxl_io_port.c
@@ -175,7 +175,7 @@  static void qxl_destroy_primary(qxl_screen_t *qxl)
 static void qxl_set_mode(qxl_screen_t *qxl, int modenr)
 {
     struct QXLMode *mode = qxl->modes + modenr;
-    uint64_t devmem = (uint64_t)qxl->ram;
+    uint64_t devmem = pointer_to_u64(qxl->ram);
     QXLSurfaceCreate surface = {
         .width      = mode->x_res,
         .height     = mode->y_res,

Comments

ACK
On Mon, Apr 09, 2012 at 08:33:15PM +0300, Alon Levy wrote:
> ---
>  src/spiceqxl_io_port.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/spiceqxl_io_port.c b/src/spiceqxl_io_port.c
> index 050e7b9..f599b4e 100644
> --- a/src/spiceqxl_io_port.c
> +++ b/src/spiceqxl_io_port.c
> @@ -175,7 +175,7 @@ static void qxl_destroy_primary(qxl_screen_t *qxl)
>  static void qxl_set_mode(qxl_screen_t *qxl, int modenr)
>  {
>      struct QXLMode *mode = qxl->modes + modenr;
> -    uint64_t devmem = (uint64_t)qxl->ram;
> +    uint64_t devmem = pointer_to_u64(qxl->ram);
>      QXLSurfaceCreate surface = {
>          .width      = mode->x_res,
>          .height     = mode->y_res,
> -- 
> 1.7.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel