diff options
author | David Howells <dhowells@redhat.com> | 2008-07-30 12:29:38 -0700 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-18 07:10:10 +1000 |
commit | 48f185d0e0f3adde81117ead074e5e6ec5548449 (patch) | |
tree | b4d15674700be716945b2fd8cfc8167bff93cddc /drivers/gpu | |
parent | 6bb9e4bff5c6fd908d907222108ef5650d77972f (diff) | |
download | op-kernel-dev-48f185d0e0f3adde81117ead074e5e6ec5548449.zip op-kernel-dev-48f185d0e0f3adde81117ead074e5e6ec5548449.tar.gz |
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 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/sis/sis_mm.c | 2 |
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 c4debfd..af22111 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) |