Skip to content

Commit c80da1f

Browse files
rddunlapakpm00
authored andcommitted
scatterlist: add missing function params to kernel-doc
Describe missing function parameters to prevent kernel-doc warnings: lib/scatterlist.c:288: warning: Function parameter or member 'first_chunk' not described in '__sg_alloc_table' lib/scatterlist.c:800: warning: Function parameter or member 'flags' not described in 'sg_miter_start' Link: https://lkml.kernel.org/r/20230912060848.4673-1-rdunlap@infradead.org Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 9d1be94 commit c80da1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/scatterlist.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ EXPORT_SYMBOL(sg_free_table);
265265
* @table: The sg table header to use
266266
* @nents: Number of entries in sg list
267267
* @max_ents: The maximum number of entries the allocator returns per call
268-
* @nents_first_chunk: Number of entries int the (preallocated) first
268+
* @first_chunk: first SGL if preallocated (may be %NULL)
269+
* @nents_first_chunk: Number of entries in the (preallocated) first
269270
* scatterlist chunk, 0 means no such preallocated chunk provided by user
270271
* @gfp_mask: GFP allocation mask
271272
* @alloc_fn: Allocator to use
@@ -788,6 +789,7 @@ EXPORT_SYMBOL(__sg_page_iter_dma_next);
788789
* @miter: sg mapping iter to be started
789790
* @sgl: sg list to iterate over
790791
* @nents: number of sg entries
792+
* @flags: sg iterator flags
791793
*
792794
* Description:
793795
* Starts mapping iterator @miter.

0 commit comments

Comments
 (0)