summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sis/sis_mm.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2008-07-30 21:29:38 +0200
committerDave Airlie <airlied@linux.ie>2008-10-17 23:10:10 +0200
commit48f185d0e0f3adde81117ead074e5e6ec5548449 (patch)
treeb4d15674700be716945b2fd8cfc8167bff93cddc /drivers/gpu/drm/sis/sis_mm.c
parentSiS DRM: fix the memory allocator if the SIS FB is built as a module (diff)
downloadlinux-48f185d0e0f3adde81117ead074e5e6ec5548449.tar.xz
linux-48f185d0e0f3adde81117ead074e5e6ec5548449.zip
SiS DRM: fix a pointer cast warning
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>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/sis/sis_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sis/sis_mm.c b/drivers/gpu/drm/sis/sis_mm.c
index c4debfdc1aaa..af22111397d8 100644
--- a/drivers/gpu/drm/sis/sis_mm.c
+++ b/drivers/gpu/drm/sis/sis_mm.c
@@ -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)