netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vringh: fix vringh_iov_push_*() documentation
@ 2020-11-16 16:16 Stefano Garzarella
  2020-11-17  2:29 ` Jason Wang
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Garzarella @ 2020-11-16 16:16 UTC (permalink / raw)
  To: mst; +Cc: virtualization, linux-kernel, kvm, netdev, Jason Wang

vringh_iov_push_*() functions don't have 'dst' parameter, but have
the 'src' parameter.

Replace 'dst' description with 'src' description.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
---
 drivers/vhost/vringh.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/vhost/vringh.c b/drivers/vhost/vringh.c
index 8bd8b403f087..b7403ba8e7f7 100644
--- a/drivers/vhost/vringh.c
+++ b/drivers/vhost/vringh.c
@@ -730,7 +730,7 @@ EXPORT_SYMBOL(vringh_iov_pull_user);
 /**
  * vringh_iov_push_user - copy bytes into vring_iov.
  * @wiov: the wiov as passed to vringh_getdesc_user() (updated as we consume)
- * @dst: the place to copy.
+ * @src: the place to copy from.
  * @len: the maximum length to copy.
  *
  * Returns the bytes copied <= len or a negative errno.
@@ -976,7 +976,7 @@ EXPORT_SYMBOL(vringh_iov_pull_kern);
 /**
  * vringh_iov_push_kern - copy bytes into vring_iov.
  * @wiov: the wiov as passed to vringh_getdesc_kern() (updated as we consume)
- * @dst: the place to copy.
+ * @src: the place to copy from.
  * @len: the maximum length to copy.
  *
  * Returns the bytes copied <= len or a negative errno.
@@ -1333,7 +1333,7 @@ EXPORT_SYMBOL(vringh_iov_pull_iotlb);
  * vringh_iov_push_iotlb - copy bytes into vring_iov.
  * @vrh: the vring.
  * @wiov: the wiov as passed to vringh_getdesc_iotlb() (updated as we consume)
- * @dst: the place to copy.
+ * @src: the place to copy from.
  * @len: the maximum length to copy.
  *
  * Returns the bytes copied <= len or a negative errno.
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] vringh: fix vringh_iov_push_*() documentation
  2020-11-16 16:16 [PATCH] vringh: fix vringh_iov_push_*() documentation Stefano Garzarella
@ 2020-11-17  2:29 ` Jason Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Wang @ 2020-11-17  2:29 UTC (permalink / raw)
  To: Stefano Garzarella, mst; +Cc: virtualization, linux-kernel, kvm, netdev


On 2020/11/17 上午12:16, Stefano Garzarella wrote:
> vringh_iov_push_*() functions don't have 'dst' parameter, but have
> the 'src' parameter.
>
> Replace 'dst' description with 'src' description.
>
> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>


Acked-by: Jason Wang <jasowang@redhat.com>


> ---
>   drivers/vhost/vringh.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/vhost/vringh.c b/drivers/vhost/vringh.c
> index 8bd8b403f087..b7403ba8e7f7 100644
> --- a/drivers/vhost/vringh.c
> +++ b/drivers/vhost/vringh.c
> @@ -730,7 +730,7 @@ EXPORT_SYMBOL(vringh_iov_pull_user);
>   /**
>    * vringh_iov_push_user - copy bytes into vring_iov.
>    * @wiov: the wiov as passed to vringh_getdesc_user() (updated as we consume)
> - * @dst: the place to copy.
> + * @src: the place to copy from.
>    * @len: the maximum length to copy.
>    *
>    * Returns the bytes copied <= len or a negative errno.
> @@ -976,7 +976,7 @@ EXPORT_SYMBOL(vringh_iov_pull_kern);
>   /**
>    * vringh_iov_push_kern - copy bytes into vring_iov.
>    * @wiov: the wiov as passed to vringh_getdesc_kern() (updated as we consume)
> - * @dst: the place to copy.
> + * @src: the place to copy from.
>    * @len: the maximum length to copy.
>    *
>    * Returns the bytes copied <= len or a negative errno.
> @@ -1333,7 +1333,7 @@ EXPORT_SYMBOL(vringh_iov_pull_iotlb);
>    * vringh_iov_push_iotlb - copy bytes into vring_iov.
>    * @vrh: the vring.
>    * @wiov: the wiov as passed to vringh_getdesc_iotlb() (updated as we consume)
> - * @dst: the place to copy.
> + * @src: the place to copy from.
>    * @len: the maximum length to copy.
>    *
>    * Returns the bytes copied <= len or a negative errno.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-17  2:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 16:16 [PATCH] vringh: fix vringh_iov_push_*() documentation Stefano Garzarella
2020-11-17  2:29 ` 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).