[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251214032533.702368-1-o-takashi@sakamocchi.jp>
Date: Sun, 14 Dec 2025 12:25:33 +0900
From: Takashi Sakamoto <o-takashi@...amocchi.jp>
To: imre.deak@...el.com,
htejun@...il.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] scatterlist: remove ambiguous comment for public fields count of mapping iterator
The structure of SG mapping iterator have some public members, while its
comment text has invalid number of the fields, due to the extensions
added in later work.
This commit gives up to describe the count so that developers no longer
take extra care.
Fixes: 137d3edb4842 ("sg: reimplement sg mapping iterator")
Fixes: 4225fc8555a9 ("lib/scatterlist: use page iterator in the mapping iterator")
Signed-off-by: Takashi Sakamoto <o-takashi@...amocchi.jp>
---
include/linux/scatterlist.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h
index 29f6ceb98d74..881019cc7bfb 100644
--- a/include/linux/scatterlist.h
+++ b/include/linux/scatterlist.h
@@ -696,7 +696,7 @@ sg_page_iter_dma_address(struct sg_dma_page_iter *dma_iter)
#define SG_MITER_LOCAL (1 << 3) /* use kmap_local */
struct sg_mapping_iter {
- /* the following three fields can be accessed directly */
+ /* the following fields can be accessed directly */
struct page *page; /* currently mapped page */
void *addr; /* pointer to the mapped area */
size_t length; /* length of the mapped area */
--
2.51.0
Powered by blists - more mailing lists