mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
mm/damon: add a kernel-doc comment for damon_ctx->rnd_state
Fix below kernel document build warning:
WARNING: ../include/linux/damon.h:909 struct member 'rnd_state' not described in 'damon_ctx'
Link: https://lore.kernel.org/20260628220808.98931-3-sj@kernel.org
Fixes: 9012c4e647 ("mm/damon: replace damon_rand() with a per-ctx lockless PRNG")
Signed-off-by: SJ Park <sj@kernel.org>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Closes: https://lore.kernel.org/4df95955-b255-4e5a-90c4-35db02f3111f@infradead.org
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -849,6 +849,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;
|
||||
@@ -906,7 +907,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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user