* [PATCH mm-new] mm/damon/core: initialize sidx in damos_trace_esz()
@ 2025-07-05 17:20 SeongJae Park
0 siblings, 0 replies; only message in thread
From: SeongJae Park @ 2025-07-05 17:20 UTC (permalink / raw)
To: Andrew Morton
Cc: SeongJae Park, damon, kernel-team, linux-kernel, linux-mm,
kernel test robot
Commit ae4dc5a31d0f ("mm/damon: add trace event for effective size
quota") introduced damos_trac_esz(), which uses sidx variable without
initialization. Initialize before using it.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507051517.bs3jd8RW-lkp@intel.com/
Fixes: ae4dc5a31d0f ("mm/damon: add trace event for effective size quota") # mm-new
Signed-off-by: SeongJae Park <sj@kernel.org>
---
mm/damon/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/damon/core.c b/mm/damon/core.c
index 6019b8ec4bba..dc0ee2dd55d3 100644
--- a/mm/damon/core.c
+++ b/mm/damon/core.c
@@ -2014,7 +2014,7 @@ static void damos_set_effective_quota(struct damos_quota *quota)
static void damos_trace_esz(struct damon_ctx *c, struct damos *s,
struct damos_quota *quota)
{
- unsigned int cidx = 0, sidx;
+ unsigned int cidx = 0, sidx = 0;
struct damos *siter;
damon_for_each_scheme(siter, c) {
base-commit: e8ad191fca305538cdebb3dac3f9be19cd610d38
--
2.39.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-07-05 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-05 17:20 [PATCH mm-new] mm/damon/core: initialize sidx in damos_trace_esz() SeongJae Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).