diff options
-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) |