Skip to content

Commit 95109b4

Browse files
Avenger-285714mstsirkin
authored andcommitted
virtio: virtio_dma_buf: fix missing parameter documentation
Add missing parameter documentation for virtio_dma_buf_attach() function to fix kernel-doc warnings: Warning: drivers/virtio/virtio_dma_buf.c:41 function parameter 'dma_buf' not described in 'virtio_dma_buf_attach' Warning: drivers/virtio/virtio_dma_buf.c:41 function parameter 'attach' not described in 'virtio_dma_buf_attach' The function documentation was missing descriptions for both the 'dma_buf' and 'attach' parameters. Add proper parameter documentation following kernel-doc format. Signed-off-by: WangYuli <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]> Reviewed-by: Xuan Zhuo <[email protected]>
1 parent 8a0d18a commit 95109b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/virtio/virtio_dma_buf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ EXPORT_SYMBOL(virtio_dma_buf_export);
3636

3737
/**
3838
* virtio_dma_buf_attach - mandatory attach callback for virtio dma-bufs
39+
* @dma_buf: [in] buffer to attach
40+
* @attach: [in] attachment structure
3941
*/
4042
int virtio_dma_buf_attach(struct dma_buf *dma_buf,
4143
struct dma_buf_attachment *attach)

0 commit comments

Comments
 (0)