Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Howells and committed by
Dave Airlie
48f185d0 6bb9e4bf

+1 -1
+1 -1
drivers/gpu/drm/sis/sis_mm.c
··· 57 57 if (req.size == 0) 58 58 return NULL; 59 59 else 60 - return (void *)~req.offset; 60 + return (void *)(unsigned long)~req.offset; 61 61 } 62 62 63 63 static void sis_sman_mm_free(void *private, void *ref)