* [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow()
@ 2018-08-15 1:46 Dongli Zhang
2018-08-15 3:22 ` Jason Wang
0 siblings, 1 reply; 2+ messages in thread
From: Dongli Zhang @ 2018-08-15 1:46 UTC (permalink / raw)
To: kvm, netdev; +Cc: linux-kernel, mst, jasowang, virtualization
Remove 'type' from the signature of __vhost_get_user_slow() as it is not
used.
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
---
drivers/vhost/vhost.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index ed31145..f78d3bc 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -807,8 +807,7 @@ static int vhost_copy_from_user(struct vhost_virtqueue *vq, void *to,
}
static void __user *__vhost_get_user_slow(struct vhost_virtqueue *vq,
- void __user *addr, unsigned int size,
- int type)
+ void __user *addr, unsigned int size)
{
int ret;
@@ -846,7 +845,7 @@ static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq,
if (uaddr)
return uaddr;
- return __vhost_get_user_slow(vq, addr, size, type);
+ return __vhost_get_user_slow(vq, addr, size);
}
#define vhost_put_user(vq, x, ptr) \
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow()
2018-08-15 1:46 [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow() Dongli Zhang
@ 2018-08-15 3:22 ` Jason Wang
0 siblings, 0 replies; 2+ messages in thread
From: Jason Wang @ 2018-08-15 3:22 UTC (permalink / raw)
To: Dongli Zhang, kvm, netdev; +Cc: linux-kernel, mst, virtualization
On 2018年08月15日 09:46, Dongli Zhang wrote:
> Remove 'type' from the signature of __vhost_get_user_slow() as it is not
> used.
>
> Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
> ---
> drivers/vhost/vhost.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
> index ed31145..f78d3bc 100644
> --- a/drivers/vhost/vhost.c
> +++ b/drivers/vhost/vhost.c
> @@ -807,8 +807,7 @@ static int vhost_copy_from_user(struct vhost_virtqueue *vq, void *to,
> }
>
> static void __user *__vhost_get_user_slow(struct vhost_virtqueue *vq,
> - void __user *addr, unsigned int size,
> - int type)
> + void __user *addr, unsigned int size)
> {
> int ret;
>
> @@ -846,7 +845,7 @@ static inline void __user *__vhost_get_user(struct vhost_virtqueue *vq,
> if (uaddr)
> return uaddr;
>
> - return __vhost_get_user_slow(vq, addr, size, type);
> + return __vhost_get_user_slow(vq, addr, size);
> }
>
> #define vhost_put_user(vq, x, ptr) \
Please keep this as is.
It will be used by incoming packed virtqueue.
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-15 3:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 1:46 [PATCH 1/1] vhost: change the signature of __vhost_get_user_slow() Dongli Zhang
2018-08-15 3:22 ` Jason Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).