summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-05-21 12:59:29 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-05-21 12:59:29 -0700
commitd2f8825ab78e4c18686f3e1a756a30255bb00bf3 (patch)
treead87f6f363cdad21cf2c65ff90c16a27480bf159 /drivers/vhost
parentcedd54f713368d32c902befc3714b91afdec1084 (diff)
parent1b0be99f1a426d9f17ced95c4118c6641a2ff13d (diff)
downloadlinux-d2f8825ab78e4c18686f3e1a756a30255bb00bf3.tar.gz
linux-d2f8825ab78e4c18686f3e1a756a30255bb00bf3.tar.bz2
linux-d2f8825ab78e4c18686f3e1a756a30255bb00bf3.zip
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
Pull virtio fixes from Michael Tsirkin: "Fix a couple of build warnings" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: vhost: missing __user tags vdpasim: remove unused variable 'ret'
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/vhost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index d450e16c5c25..21a59b598ed8 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -730,7 +730,7 @@ static inline void __user *vhost_vq_meta_fetch(struct vhost_virtqueue *vq,
if (!map)
return NULL;
- return (void *)(uintptr_t)(map->addr + addr - map->start);
+ return (void __user *)(uintptr_t)(map->addr + addr - map->start);
}
/* Can we switch to this memory table? */
@@ -869,7 +869,7 @@ static void __user *__vhost_get_user_slow(struct vhost_virtqueue *vq,
* not happen in this case.
*/
static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq,
- void *addr, unsigned int size,
+ void __user *addr, unsigned int size,
int type)
{
void __user *uaddr = vhost_vq_meta_fetch(vq,