Skip to contentSkip to conversation

virtio_ring: Fix kernel-doc

PATCH New Yang Li 1 participant 1 message May 26, 2021 virtio core

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 virtio_ring: Fix kernel-doc

Fix function name in virtio_ring.c kernel-doc comment to remove a warning found by clang_w1.

drivers/virtio/virtio_ring.c:1903: warning: expecting prototype for virtqueue_get_buf(). Prototype was for virtqueue_get_buf_ctx() instead

Fixes 'commit e593bf975156 ("virtio_ring: put split ring fields in a

sub struct")'

---
 drivers/virtio/virtio_ring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/virtio/virtio_ring.c +1 -1
index 71e16b5..095a9a3 100644
@@ -1875,7 +1875,7 @@ bool virtqueue_kick(struct virtqueue *vq)
 EXPORT_SYMBOL_GPL(virtqueue_kick);
 
 /**
- * virtqueue_get_buf - get the next used buffer
+ * virtqueue_get_buf_ctx - get the next used buffer
  * @_vq: the struct virtqueue we're talking about.
  * @len: the length written into the buffer
  * @ctx: extra context for the token
Signature · 1 line
1.8.3.1