mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
SiS DRM: fix a pointer cast warning
Fix a pointer cast warning in the SIS DRM code.
This was introduced in patch ce65a44de0
.
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>
This commit is contained in:
parent
6bb9e4bff5
commit
48f185d0e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user