virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment
@ 2025-10-29  3:35 Sukrut Heroorkar
  2025-11-06  6:44 ` Jason Wang
  2025-11-17  9:39 ` Michael S. Tsirkin
  0 siblings, 2 replies; 3+ messages in thread
From: Sukrut Heroorkar @ 2025-10-29  3:35 UTC (permalink / raw)
  To: Michael S. Tsirkin, Jason Wang, Xuan Zhuo, Eugenio Pérez,
	open list:VIRTIO CORE AND NET DRIVERS, open list
  Cc: shuah, david.hunter.linux, Sukrut Heroorkar

Building with W=1 reports:
Warning: drivers/virtio/virtio_ring.c:3174 function parameter 'vaddr'
not described in 'virtqueue_map_free_coherent'

The @vaddr parameter was introduced when virtqueue_map_free_coherent
was added in order to provide map operations to virtio device, but it
was never documented. Document @vaddr to silence this warning.

Fixes: bee8c7c24b73 ("virtio: introduce map ops in virtio core")
Signed-off-by: Sukrut Heroorkar <hsukrut3@gmail.com>
---
 drivers/virtio/virtio_ring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index 7b6205253b46..d763060ff0f6 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -3166,6 +3166,7 @@ EXPORT_SYMBOL_GPL(virtqueue_map_alloc_coherent);
  * @vdev: the virtio device we are talking to
  * @map: metadata for performing mapping
  * @size: the size of the buffer
+ * @vaddr: virtual address of the buffer
  * @map_handle: the mapped address that needs to be freed
  *
  */
-- 
2.43.0


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

* Re: [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment
  2025-10-29  3:35 [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment Sukrut Heroorkar
@ 2025-11-06  6:44 ` Jason Wang
  2025-11-17  9:39 ` Michael S. Tsirkin
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Wang @ 2025-11-06  6:44 UTC (permalink / raw)
  To: Sukrut Heroorkar
  Cc: Michael S. Tsirkin, Xuan Zhuo, Eugenio Pérez,
	open list:VIRTIO CORE AND NET DRIVERS, open list, shuah,
	david.hunter.linux

On Wed, Oct 29, 2025 at 11:36 AM Sukrut Heroorkar <hsukrut3@gmail.com> wrote:
>
> Building with W=1 reports:
> Warning: drivers/virtio/virtio_ring.c:3174 function parameter 'vaddr'
> not described in 'virtqueue_map_free_coherent'
>
> The @vaddr parameter was introduced when virtqueue_map_free_coherent
> was added in order to provide map operations to virtio device, but it
> was never documented. Document @vaddr to silence this warning.
>
> Fixes: bee8c7c24b73 ("virtio: introduce map ops in virtio core")
> Signed-off-by: Sukrut Heroorkar <hsukrut3@gmail.com>

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

Thanks


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

* Re: [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment
  2025-10-29  3:35 [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment Sukrut Heroorkar
  2025-11-06  6:44 ` Jason Wang
@ 2025-11-17  9:39 ` Michael S. Tsirkin
  1 sibling, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2025-11-17  9:39 UTC (permalink / raw)
  To: Sukrut Heroorkar
  Cc: Jason Wang, Xuan Zhuo, Eugenio Pérez,
	open list:VIRTIO CORE AND NET DRIVERS, open list, shuah,
	david.hunter.linux

On Wed, Oct 29, 2025 at 09:05:58AM +0530, Sukrut Heroorkar wrote:
> Building with W=1 reports:
> Warning: drivers/virtio/virtio_ring.c:3174 function parameter 'vaddr'
> not described in 'virtqueue_map_free_coherent'
> 
> The @vaddr parameter was introduced when virtqueue_map_free_coherent
> was added in order to provide map operations to virtio device, but it
> was never documented. Document @vaddr to silence this warning.
> 
> Fixes: bee8c7c24b73 ("virtio: introduce map ops in virtio core")
> Signed-off-by: Sukrut Heroorkar <hsukrut3@gmail.com>

I picked a different version that fixed a couple of other
issues as well, but thanks!

> ---
>  drivers/virtio/virtio_ring.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
> index 7b6205253b46..d763060ff0f6 100644
> --- a/drivers/virtio/virtio_ring.c
> +++ b/drivers/virtio/virtio_ring.c
> @@ -3166,6 +3166,7 @@ EXPORT_SYMBOL_GPL(virtqueue_map_alloc_coherent);
>   * @vdev: the virtio device we are talking to
>   * @map: metadata for performing mapping
>   * @size: the size of the buffer
> + * @vaddr: virtual address of the buffer
>   * @map_handle: the mapped address that needs to be freed
>   *
>   */
> -- 
> 2.43.0


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

end of thread, other threads:[~2025-11-17  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29  3:35 [PATCH] virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment Sukrut Heroorkar
2025-11-06  6:44 ` Jason Wang
2025-11-17  9:39 ` Michael S. Tsirkin

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).