From: Dave Airlie Date: Sun, 25 Sep 2005 04:30:09 +0000 (+1000) Subject: drm: cast handle to a pointer to avoid warning X-Git-Tag: v2.6.15-rc1~18^2~14^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13e4a9c85152a49ec10e682308581ab13b437470;p=profile%2Fivi%2Fkernel-x86-ivi.git drm: cast handle to a pointer to avoid warning Andrew reported a warning on this line, just case to void *. Signed-off-by: Dave Airlie --- diff --git a/drivers/char/drm/drm_bufs.c b/drivers/char/drm/drm_bufs.c index bb989cc..e3d372a 100644 --- 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; }