Skip to content

Commit

Permalink
SiS DRM: fix a pointer cast warning
Browse files Browse the repository at this point in the history
Fix a pointer cast warning in the SIS DRM code.

This was introduced in patch ce65a44.

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>
  • Loading branch information
David Howells authored and Dave Airlie committed Oct 17, 2008
1 parent 6bb9e4b commit 48f185d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/sis/sis_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48f185d

Please sign in to comment.