projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5e89ed
)
drm: cast handle to a pointer to avoid warning
author
Dave Airlie
<airlied@starflyer.(none)>
Sun, 25 Sep 2005 04:30:09 +0000
(14:30 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 25 Sep 2005 04:30:09 +0000
(14:30 +1000)
Andrew reported a warning on this line, just case to void *.
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm_bufs.c
b/drivers/char/drm/drm_bufs.c
index bb989ccea5a0aad213ca0814444b9952930b668f..e3d372ad00768f8f615c15a0c14ab892795d4f4f 100644
(file)
--- a/
drivers/char/drm/drm_bufs.c
+++ b/
drivers/char/drm/drm_bufs.c
@@
-309,7
+309,7
@@
int drm_addmap_ioctl(struct inode *inode, struct file *filp,
if (copy_to_user(argp, maplist->map, sizeof(drm_map_t)))
return -EFAULT;
- if (put_user(maplist->user_token, &argp->handle))
+ if (put_user(
(void *)
maplist->user_token, &argp->handle))
return -EFAULT;
return 0;
}