Skip to contentSkip to conversation

virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment

PATCH In review Sukrut Heroorkar 3 participants 3 messages Oct 29, 2025 – Nov 17, 2025 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio: document @vaddr in virtqueue_map_free_coherent kernel-doc comment

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")
---
 drivers/virtio/virtio_ring.c | 1 +
 1 file changed, 1 insertion(+)
drivers/virtio/virtio_ring.c +1 -0
index 7b6205253b46..d763060ff0f6 100644
@@ -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
  *
  */
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · 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")

Thanks

#2 lore raw
In reply to Sukrut Heroorkar
Quoted 10 lines · 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")

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

Quoted 18 lines
---
 drivers/virtio/virtio_ring.c | 1 +
 1 file changed, 1 insertion(+)
drivers/virtio/virtio_ring.c +1 -0
index 7b6205253b46..d763060ff0f6 100644
@@ -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
  *
  */
Signature · 1 line
2.43.0