All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio: fix virtio_config_ops kerneldocs
@ 2022-12-20  7:37 ` Ricardo Cañuelo
  0 siblings, 0 replies; 12+ messages in thread
From: Ricardo Cañuelo @ 2022-12-20  7:37 UTC (permalink / raw)
  To: mst; +Cc: sfr, linux-kernel, linux-next, virtualization, kernel

Fixes two warning messages when building htmldocs:

    warning: duplicate section name 'Note'
    warning: expecting prototype for virtio_config_ops().
             Prototype was for vq_callback_t() instead

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
---
 include/linux/virtio_config.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h
index 4b517649cfe8..f9a33062c089 100644
--- a/include/linux/virtio_config.h
+++ b/include/linux/virtio_config.h
@@ -16,8 +16,10 @@ struct virtio_shm_region {
 	u64 len;
 };
 
+typedef void vq_callback_t(struct virtqueue *);
+
 /**
- * virtio_config_ops - operations for configuring a virtio device
+ * struct virtio_config_ops - operations for configuring a virtio device
  * Note: Do not assume that a transport implements all of the operations
  *       getting/setting a value as a simple read/write! Generally speaking,
  *       any of @get/@set, @get_status/@set_status, or @get_features/
@@ -68,8 +70,8 @@ struct virtio_shm_region {
  * @finalize_features: confirm what device features we'll be using.
  *	vdev: the virtio_device
  *	This sends the driver feature bits to the device: it can change
- *	the dev->feature bits if it wants.
- * Note: despite the name this can be called any number of times.
+ *	the dev->feature bits if it wants. Note: despite the name this
+ *	can be called any number of times.
  *	Returns 0 on success or error status
  * @bus_name: return the bus name associated with the device (optional)
  *	vdev: the virtio_device
@@ -91,7 +93,6 @@ struct virtio_shm_region {
  *	If disable_vq_and_reset is set, then enable_vq_after_reset must also be
  *	set.
  */
-typedef void vq_callback_t(struct virtqueue *);
 struct virtio_config_ops {
 	void (*get)(struct virtio_device *vdev, unsigned offset,
 		    void *buf, unsigned len);
-- 
2.25.1


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

end of thread, other threads:[~2022-12-20 11:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20  7:37 [PATCH] virtio: fix virtio_config_ops kerneldocs Ricardo Cañuelo
2022-12-20  7:37 ` Ricardo Cañuelo
2022-12-20  9:12 ` Bagas Sanjaya
2022-12-20  9:54   ` Ricardo Cañuelo
2022-12-20  9:54     ` Ricardo Cañuelo
2022-12-20 10:25     ` Michael S. Tsirkin
2022-12-20 10:25       ` Michael S. Tsirkin
2022-12-20 11:30       ` Ricardo Cañuelo
2022-12-20 11:30         ` Ricardo Cañuelo
2022-12-20  9:48 ` AngeloGioacchino Del Regno
2022-12-20 10:01   ` Ricardo Cañuelo
2022-12-20 10:01     ` Ricardo Cañuelo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.