diff options
author | David Howells <dhowells@redhat.com> | 2008-07-30 15:29:38 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-17 17:10:10 -0400 |
commit | 48f185d0e0f3adde81117ead074e5e6ec5548449 (patch) | |
tree | b4d15674700be716945b2fd8cfc8167bff93cddc | |
parent | 6bb9e4bff5c6fd908d907222108ef5650d77972f (diff) |
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>
-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 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, | |||
57 | if (req.size == 0) | 57 | if (req.size == 0) |
58 | return NULL; | 58 | return NULL; |
59 | else | 59 | else |
60 | return (void *)~req.offset; | 60 | return (void *)(unsigned long)~req.offset; |
61 | } | 61 | } |
62 | 62 | ||
63 | static void sis_sman_mm_free(void *private, void *ref) | 63 | static void sis_sman_mm_free(void *private, void *ref) |