Skip to contentSkip to conversation

virtio: add missing kernel-doc for map and vmap members

PATCH New Christian Fontanez 1 participant 1 message May 19 virtio core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio: add missing kernel-doc for map and vmap members

Commit bee8c7c24b73 ("virtio: introduce map ops in virtio core") and commit b16060c5c7d5 ("virtio: introduce virtio_map container union") added 'map' and 'vmap' members to struct virtio_device but did not update the kernel-doc comment block. This caused 'make htmldocs' to emit warnings:

./include/linux/virtio.h:188 struct member 'map' not described in 'virtio_device' ./include/linux/virtio.h:188 struct member 'vmap' not described in 'virtio_device'

Add the missing entries in struct-declaration order to match the existing convention in the file. After this patch, 'make htmldocs' no longer emits these warnings.

Fixes bee8c7c24b73 ("virtio: introduce map ops in virtio core")
Fixes b16060c5c7d5 ("virtio: introduce virtio_map container union")

---
Notes for reviewers:
- Tested with 'make htmldocs' on linux-next (next-20260518); the two warnings on include/linux/virtio.h:188 are gone, with no new warnings introduced.
- Based on linux-next/master at commit 80dd246accce ("Add linux-next specific files for 20260518").

 include/linux/virtio.h | 2 ++
 1 file changed, 2 insertions(+)
include/linux/virtio.h +2 -0
index 3bbc4cb6a672..bf089e51970e 100644
@@ -157,11 +157,13 @@ struct virtio_admin_cmd {
  * @id: the device type identification (used to match it with a driver).
  * @config: the configuration ops for this device.
  * @vringh_config: configuration ops for host vrings.
+ * @map: the map operations for mapping virtio device memory.
  * @vqs: the list of virtqueues for this device.
  * @features: the 64 lower features supported by both driver and device.
  * @features_array: the full features space supported by both driver and
  *		    device.
  * @priv: private pointer for the driver's use.
+ * @vmap: the map container with transport- or device-specific metadata.
  * @debugfs_dir: debugfs directory entry.
  * @debugfs_filter_features: features to be filtered set by debugfs.
  */

--
2.54.0