* [PATCH 0/2] mm/damon: add kernel-doc comments for probes and rnd_state of damon_ctx
@ 2026-06-28 22:08 SJ Park
2026-06-28 22:08 ` [PATCH 1/2] mm/damon: add a kernel-doc comment for damon_ctx->probes SJ Park
2026-06-28 22:08 ` [PATCH 2/2] mm/damon: add a kernel-doc comment for damon_ctx->rnd_state SJ Park
0 siblings, 2 replies; 3+ messages in thread
From: SJ Park @ 2026-06-28 22:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: SJ Park, Jiayuan Chen, damon, linux-kernel, linux-mm
The two fields of damon_ctx struct don’t have their kernel-doc comments.
That causes kernel document builds to warn. Fix those.
The broken commits are in the mm-stable tree. As the issue is not
significant and the next merge window for 7.2 is expected to open today,
apparently it is too late to squash these fixes to the broken commits. I
hope these to be merged into 7.2 release after the merge window, so that
those don't bother stable@.
SJ Park (2):
mm/damon: add a kernel-doc comment for damon_ctx->probes
mm/damon: add a kernel-doc comment for damon_ctx->rnd_state
include/linux/damon.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
base-commit: 7875263842e9465bb31d0dbbcbd899610dfe43b4
--
2.47.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] mm/damon: add a kernel-doc comment for damon_ctx->probes
2026-06-28 22:08 [PATCH 0/2] mm/damon: add kernel-doc comments for probes and rnd_state of damon_ctx SJ Park
@ 2026-06-28 22:08 ` SJ Park
2026-06-28 22:08 ` [PATCH 2/2] mm/damon: add a kernel-doc comment for damon_ctx->rnd_state SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-06-28 22:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: SJ Park, damon, linux-kernel, linux-mm, Randy Dunlap
Fix below document build warning:
WARNING: ../include/linux/damon.h:909 struct member 'probes' not described in 'damon_ctx'
Fixes: 18c777859f28 ("mm/damon/core: embed damon_probe objects in damon_ctx")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/4df95955-b255-4e5a-90c4-35db02f3111f@infradead.org
Signed-off-by: SJ Park <sj@kernel.org>
---
include/linux/damon.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/damon.h b/include/linux/damon.h
index 783d921075f25..535f675625724 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -841,6 +841,7 @@ struct damon_attrs {
* including damon_call() and damos_walk().
*
* @ops: Set of monitoring operations for given use cases.
+ * @probes: Head of probes (&damon_probe) list.
* @addr_unit: Scale factor for core to ops address conversion.
* @min_region_sz: Minimum region size.
* @pause: Pause kdamond main loop.
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] mm/damon: add a kernel-doc comment for damon_ctx->rnd_state
2026-06-28 22:08 [PATCH 0/2] mm/damon: add kernel-doc comments for probes and rnd_state of damon_ctx SJ Park
2026-06-28 22:08 ` [PATCH 1/2] mm/damon: add a kernel-doc comment for damon_ctx->probes SJ Park
@ 2026-06-28 22:08 ` SJ Park
1 sibling, 0 replies; 3+ messages in thread
From: SJ Park @ 2026-06-28 22:08 UTC (permalink / raw)
To: Andrew Morton
Cc: SJ Park, Jiayuan Chen, damon, linux-kernel, linux-mm,
Randy Dunlap
Fix below kernel document build warning:
WARNING: ../include/linux/damon.h:909 struct member 'rnd_state' not described in 'damon_ctx'
Fixes: 9012c4e647df ("mm/damon: replace damon_rand() with a per-ctx lockless PRNG")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/4df95955-b255-4e5a-90c4-35db02f3111f@infradead.org
Signed-off-by: SJ Park <sj@kernel.org>
---
include/linux/damon.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/damon.h b/include/linux/damon.h
index 535f675625724..cfbbf8ba28f63 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -847,6 +847,7 @@ struct damon_attrs {
* @pause: Pause kdamond main loop.
* @adaptive_targets: Head of monitoring targets (&damon_target) list.
* @schemes: Head of schemes (&damos) list.
+ * @rnd_state: Per-ctx PRNG state for damon_rand().
*/
struct damon_ctx {
struct damon_attrs attrs;
@@ -904,7 +905,6 @@ struct damon_ctx {
struct list_head adaptive_targets;
struct list_head schemes;
- /* Per-ctx PRNG state for damon_rand(); kdamond is the sole consumer. */
struct rnd_state rnd_state;
};
--
2.47.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-28 22:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-28 22:08 [PATCH 0/2] mm/damon: add kernel-doc comments for probes and rnd_state of damon_ctx SJ Park
2026-06-28 22:08 ` [PATCH 1/2] mm/damon: add a kernel-doc comment for damon_ctx->probes SJ Park
2026-06-28 22:08 ` [PATCH 2/2] mm/damon: add a kernel-doc comment for damon_ctx->rnd_state SJ Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox