From: Jason Wang <jasowang@redhat.com>
To: Parav Pandit <parav@nvidia.com>,
virtualization@lists.linux-foundation.org
Cc: elic@nvidia.com, mst@redhat.com
Subject: Re: [PATCH linux-next v2 01/14] vdpa: Follow kdoc comment style
Date: Wed, 7 Apr 2021 11:08:23 +0800 [thread overview]
Message-ID: <0af9f61b-02a6-3b28-b101-d9125bd50e35@redhat.com> (raw)
In-Reply-To: <20210406170457.98481-2-parav@nvidia.com>
在 2021/4/7 上午1:04, Parav Pandit 写道:
> Follow comment style mentioned in the Writing kernel-doc document [1].
>
> Following warnings are fixed.
> $ scripts/kernel-doc -v -none include/linux/vdpa.h
> include/linux/vdpa.h:11: warning: missing initial short description on line:
> * vDPA callback definition.
> include/linux/vdpa.h:11: info: Scanning doc for vDPA
> include/linux/vdpa.h:15: warning: cannot understand function prototype: 'struct vdpa_callback '
> include/linux/vdpa.h:21: warning: missing initial short description on line:
> * vDPA notification area
> include/linux/vdpa.h:21: info: Scanning doc for vDPA
> include/linux/vdpa.h:25: warning: cannot understand function prototype: 'struct vdpa_notification_area '
> include/linux/vdpa.h:31: warning: missing initial short description on line:
> * vDPA vq_state definition
> include/linux/vdpa.h:31: info: Scanning doc for vDPA
> include/linux/vdpa.h:34: warning: cannot understand function prototype: 'struct vdpa_vq_state '
> include/linux/vdpa.h:41: info: Scanning doc for vDPA device
> include/linux/vdpa.h:51: warning: cannot understand function prototype: 'struct vdpa_device '
> include/linux/vdpa.h:62: info: Scanning doc for vDPA IOVA range
> include/linux/vdpa.h:66: warning: cannot understand function prototype: 'struct vdpa_iova_range '
> include/linux/vdpa.h:72: info: Scanning doc for vDPA_config_ops
> include/linux/vdpa.h:203: warning: cannot understand function prototype: 'struct vdpa_config_ops '
> include/linux/vdpa.h:270: info: Scanning doc for vdpa_driver
> include/linux/vdpa.h:275: warning: cannot understand function prototype: 'struct vdpa_driver '
> include/linux/vdpa.h:347: info: Scanning doc for vdpa_mgmtdev_ops
> include/linux/vdpa.h:360: warning: cannot understand function prototype: 'struct vdpa_mgmtdev_ops '
>
> After this fix:
>
> scripts/kernel-doc -v -none include/linux/vdpa.h
> include/linux/vdpa.h:11: info: Scanning doc for struct vdpa_calllback
> include/linux/vdpa.h:21: info: Scanning doc for struct vdpa_notification_area
> include/linux/vdpa.h:31: info: Scanning doc for struct vdpa_vq_state
> include/linux/vdpa.h:41: info: Scanning doc for struct vdpa_device
> include/linux/vdpa.h:62: info: Scanning doc for struct vdpa_iova_range
> include/linux/vdpa.h:72: info: Scanning doc for struct vdpa_config_ops
> include/linux/vdpa.h:270: info: Scanning doc for struct vdpa_driver
> include/linux/vdpa.h:347: info: Scanning doc for struct vdpa_mgmtdev_ops
>
> [1] https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html
>
> Signed-off-by: Parav Pandit <parav@nvidia.com>
> Reviewed-by: Eli Cohen <elic@nvidia.com>
Acked-by: Jason Wang <jasowang@redhat.com>
> ---
> include/linux/vdpa.h | 38 +++++++++++++++++++-------------------
> 1 file changed, 19 insertions(+), 19 deletions(-)
>
> diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h
> index 15fa085fab05..37b65ca940cf 100644
> --- a/include/linux/vdpa.h
> +++ b/include/linux/vdpa.h
> @@ -8,7 +8,7 @@
> #include <linux/vhost_iotlb.h>
>
> /**
> - * vDPA callback definition.
> + * struct vdpa_calllback - vDPA callback definition.
> * @callback: interrupt callback function
> * @private: the data passed to the callback function
> */
> @@ -18,7 +18,7 @@ struct vdpa_callback {
> };
>
> /**
> - * vDPA notification area
> + * struct vdpa_notification_area - vDPA notification area
> * @addr: base address of the notification area
> * @size: size of the notification area
> */
> @@ -28,7 +28,7 @@ struct vdpa_notification_area {
> };
>
> /**
> - * vDPA vq_state definition
> + * struct vdpa_vq_state - vDPA vq_state definition
> * @avail_index: available index
> */
> struct vdpa_vq_state {
> @@ -38,7 +38,7 @@ struct vdpa_vq_state {
> struct vdpa_mgmt_dev;
>
> /**
> - * vDPA device - representation of a vDPA device
> + * struct vdpa_device - representation of a vDPA device
> * @dev: underlying device
> * @dma_dev: the actual device that is performing DMA
> * @config: the configuration ops for this device.
> @@ -59,7 +59,7 @@ struct vdpa_device {
> };
>
> /**
> - * vDPA IOVA range - the IOVA range support by the device
> + * struct vdpa_iova_range - the IOVA range support by the device
> * @first: start of the IOVA range
> * @last: end of the IOVA range
> */
> @@ -69,7 +69,7 @@ struct vdpa_iova_range {
> };
>
> /**
> - * vDPA_config_ops - operations for configuring a vDPA device.
> + * struct vdpa_config_ops - operations for configuring a vDPA device.
> * Note: vDPA device drivers are required to implement all of the
> * operations unless it is mentioned to be optional in the following
> * list.
> @@ -267,7 +267,7 @@ int _vdpa_register_device(struct vdpa_device *vdev, int nvqs);
> void _vdpa_unregister_device(struct vdpa_device *vdev);
>
> /**
> - * vdpa_driver - operations for a vDPA driver
> + * struct vdpa_driver - operations for a vDPA driver
> * @driver: underlying device driver
> * @probe: the function to call when a device is found. Returns 0 or -errno.
> * @remove: the function to call when a device is removed.
> @@ -344,18 +344,18 @@ static inline void vdpa_get_config(struct vdpa_device *vdev, unsigned offset,
> }
>
> /**
> - * vdpa_mgmtdev_ops - vdpa device ops
> - * @dev_add: Add a vdpa device using alloc and register
> - * @mdev: parent device to use for device addition
> - * @name: name of the new vdpa device
> - * Driver need to add a new device using _vdpa_register_device()
> - * after fully initializing the vdpa device. Driver must return 0
> - * on success or appropriate error code.
> - * @dev_del: Remove a vdpa device using unregister
> - * @mdev: parent device to use for device removal
> - * @dev: vdpa device to remove
> - * Driver need to remove the specified device by calling
> - * _vdpa_unregister_device().
> + * struct vdpa_mgmtdev_ops - vdpa device ops
> + * @dev_add: Add a vdpa device using alloc and register
> + * @mdev: parent device to use for device addition
> + * @name: name of the new vdpa device
> + * Driver need to add a new device using _vdpa_register_device()
> + * after fully initializing the vdpa device. Driver must return 0
> + * on success or appropriate error code.
> + * @dev_del: Remove a vdpa device using unregister
> + * @mdev: parent device to use for device removal
> + * @dev: vdpa device to remove
> + * Driver need to remove the specified device by calling
> + * _vdpa_unregister_device().
> */
> struct vdpa_mgmtdev_ops {
> int (*dev_add)(struct vdpa_mgmt_dev *mdev, const char *name);
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
next prev parent reply other threads:[~2021-04-07 3:08 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-06 17:04 [PATCH linux-next v2 00/14] vdpa: Enable user to set mac address, mtu Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 01/14] vdpa: Follow kdoc comment style Parav Pandit
2021-04-07 3:08 ` Jason Wang [this message]
2021-04-06 17:04 ` [PATCH linux-next v2 02/14] " Parav Pandit
2021-04-07 3:09 ` Jason Wang
2021-04-06 17:04 ` [PATCH linux-next v2 03/14] vdpa: Introduce and use vdpa device get, set config, features helpers Parav Pandit
2021-04-07 3:18 ` [PATCH linux-next v2 03/14] vdpa: Introduce and use vdpa device get,set " Jason Wang
2021-04-07 3:52 ` Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 04/14] vdpa: Introduce query of device config layout Parav Pandit
2021-04-07 3:56 ` Jason Wang
2021-04-07 5:10 ` Parav Pandit
2021-04-07 7:12 ` Jason Wang
2021-04-08 6:23 ` Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 05/14] vdpa: Enable user to set mac and mtu of vdpa device Parav Pandit
2021-04-07 3:59 ` Jason Wang
2021-04-06 17:04 ` [PATCH linux-next v2 06/14] vdpa_sim_net: Enable user to set mac address and mtu Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 07/14] vdpa/mlx5: Use the correct dma device when registering memory Parav Pandit
2021-04-07 4:00 ` Jason Wang
2021-04-06 17:04 ` [PATCH linux-next v2 08/14] vdpa/mlx5: Retrieve BAR address suitable any function Parav Pandit
2021-04-07 5:32 ` Jason Wang
2021-04-06 17:04 ` [PATCH linux-next v2 09/14] vdpa/mlx5: Enable user to add/delete vdpa device Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 10/14] vdpa/mlx5: Support configuration of MAC Parav Pandit
2021-04-07 7:21 ` Jason Wang
2021-04-06 17:04 ` [PATCH linux-next v2 11/14] vdpa/mlx5: Forward only packets with allowed MAC address Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 12/14] vdpa/mlx5: should exclude header length and fcs from mtu Parav Pandit
2021-04-06 17:04 ` [PATCH linux-next v2 13/14] vdpa/mlx5: Fix suspend/resume index restoration Parav Pandit
2021-04-07 7:25 ` Jason Wang
[not found] ` <20210407101612.GB207753@mtl-vdi-166.wap.labs.mlnx>
2021-04-07 13:38 ` Michael S. Tsirkin
2021-04-06 17:04 ` [PATCH linux-next v2 14/14] vdpa/mlx5: Fix wrong use of bit numbers Parav Pandit
2021-04-07 7:25 ` Jason Wang
2021-04-07 7:28 ` Parav Pandit
2021-04-07 7:28 ` [PATCH linux-next v2 00/14] vdpa: Enable user to set mac address, mtu Jason Wang
2021-04-08 3:45 ` Parav Pandit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0af9f61b-02a6-3b28-b101-d9125bd50e35@redhat.com \
--to=jasowang@redhat.com \
--cc=elic@nvidia.com \
--cc=mst@redhat.com \
--cc=parav@nvidia.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).