[PATCH 02/21] ide: ide-dma: Document ide_dma_unmap_sg()'s missing 'cmd' param

From: Lee Jones
Date: Wed Jun 02 2021 - 06:18:06 EST


Fixes the following W=1 kernel build warning(s):

drivers/ide/ide-dma.c:165: warning: Function parameter or member 'cmd' not described in 'ide_dma_unmap_sg'

Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: Andre Hedrick <andre@xxxxxxxxxxxxx>
Cc: "Christopher J. Reimer" <reimer@xxxxxxxxxxxxxxx>
Cc: Benoit Poulot-Cazajous <poulot@xxxxxxxxx>
Cc: Christian Brunner <chb@xxxxxx>
Cc: Robert Bringman <rob@xxxxxxxxxxxxxx>
Cc: linux-ide@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/ide/ide-dma.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c
index 6f344654ef229..a02d02ad9ea23 100644
--- a/drivers/ide/ide-dma.c
+++ b/drivers/ide/ide-dma.c
@@ -153,6 +153,7 @@ static int ide_dma_map_sg(ide_drive_t *drive, struct ide_cmd *cmd)
/**
* ide_dma_unmap_sg - clean up DMA mapping
* @drive: The drive to unmap
+ * @cmd: The IDEcommand
*
* Teardown mappings after DMA has completed. This must be called
* after the completion of each use of ide_build_dmatable and before
--
2.31.1