提交 13e4a9c8 编写于 作者: D Dave Airlie 提交者: Dave Airlie

drm: cast handle to a pointer to avoid warning

Andrew reported a warning on this line, just case to void *.
Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 b5e89ed5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册