Skip to content

Commit a61cb60

Browse files
author
Christoph Hellwig
committed
dma-mapping: fix the kerneldoc for dma_map_sg_attrs
Add the missing description for the nents parameter, and fix a trivial misalignment. Fixes: fffe3cc ("dma-mapping: allow map_sg() ops to return negative error codes") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent c1dec34 commit a61cb60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/dma/mapping.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ static int __dma_map_sg_attrs(struct device *dev, struct scatterlist *sg,
206206
/**
207207
* dma_map_sg_attrs - Map the given buffer for DMA
208208
* @dev: The device for which to perform the DMA operation
209-
* @sg: The sg_table object describing the buffer
209+
* @sg: The sg_table object describing the buffer
210+
* @nents: Number of entries to map
210211
* @dir: DMA direction
211212
* @attrs: Optional DMA attributes for the map operation
212213
*

0 commit comments

Comments
 (0)