]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
SiS DRM: fix a pointer cast warning
authorDavid Howells <dhowells@redhat.com>
Wed, 30 Jul 2008 19:29:38 +0000 (12:29 -0700)
committerDave Airlie <airlied@linux.ie>
Fri, 17 Oct 2008 21:10:10 +0000 (07:10 +1000)
Fix a pointer cast warning in the SIS DRM code.

This was introduced in patch ce65a44de07f73ceda1749812b75086b7add408d.

Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/sis/sis_mm.c

index c4debfdc1aaad06c7a0025d5b401ae5faf8c1324..af22111397d8cad6822cfa1b659c291ec885fa45 100644 (file)
@@ -57,7 +57,7 @@ static void *sis_sman_mm_allocate(void *private, unsigned long size,
        if (req.size == 0)
                return NULL;
        else
-               return (void *)~req.offset;
+               return (void *)(unsigned long)~req.offset;
 }
 
 static void sis_sman_mm_free(void *private, void *ref)