DAMON development mailing list
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: sashiko-bot@kernel.org
Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev
Subject: Re: [RFC PATCH v1.1 1/2] mm/damon/stat: add a parameter for reading kdamond pid
Date: Tue, 14 Apr 2026 17:35:23 -0700	[thread overview]
Message-ID: <20260415003523.103888-1-sj@kernel.org> (raw)
In-Reply-To: <20260415001614.9C571C19425@smtp.kernel.org>

On Wed, 15 Apr 2026 00:16:14 +0000 sashiko-bot@kernel.org wrote:

> Sashiko AI review found 1 potential issue(s):
> - [Low] Missing closing brace `}` in `damon_stat_start()` error path causes compilation failure.
> --
> 
> commit 04b7136ae6b7cd907673996f57f0a613de1984b9
> Author: SeongJae Park <sj@kernel.org>
> 
> mm/damon/stat: add a parameter for reading kdamond pid
> 
> This commit exposes the pid of the DAMON_STAT kdamond via a new read-only
> module parameter named kdamond_pid to help user-space management and
> monitoring.
> 
> > diff --git a/mm/damon/stat.c b/mm/damon/stat.c
> > --- a/mm/damon/stat.c
> > +++ b/mm/damon/stat.c
> 
> [ ... ]
> 
> > @@ -260,6 +269,13 @@ static int damon_stat_start(void)
> >  		damon_stat_context = NULL;
> >  		return err;
> >  	}
> > +	kdamond_pid = damon_kdamond_pid(damon_stat_context);
> > +	if (kdamond_pid < 0) {
> > +		err = kdamond_pid;
> > +		kdamond_pid = -1;
> > +		damon_destroy_ctx(damon_stat_context);
> > +		damon_stat_context = NULL;
> > +		return err;
> 
> Is there a missing closing brace for the if (kdamond_pid < 0) block here?
> It looks like the omission will swallow the rest of the function into the
> error path and cause a compilation failure.

Good eye.  I will fix this in the next revision.


Thanks,
SJ

[...]

  reply	other threads:[~2026-04-15  0:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-14 23:59 [RFC PATCH v1.1 0/2] mm/damon/stat: add kdamond_pid parameter SeongJae Park
2026-04-14 23:59 ` [RFC PATCH v1.1 1/2] mm/damon/stat: add a parameter for reading kdamond pid SeongJae Park
2026-04-15  0:16   ` sashiko-bot
2026-04-15  0:35     ` SeongJae Park [this message]
2026-04-14 23:59 ` [RFC PATCH v1.1 2/2] Docs/admin-guide/mm/damon/stat: document kdamond_pid parameter SeongJae Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260415003523.103888-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=damon@lists.linux.dev \
    --cc=sashiko-bot@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox