From: SeongJae Park <sj@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: SeongJae Park <sj@kernel.org>,
llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
damon@lists.linux.dev
Subject: Re: [sj:damon/next 10/106] mm/damon/core.c:2023:3: warning: variable 'sidx' is uninitialized when used here
Date: Sat, 5 Jul 2025 10:21:10 -0700 [thread overview]
Message-ID: <20250705172110.52351-1-sj@kernel.org> (raw)
In-Reply-To: <202507051517.bs3jd8RW-lkp@intel.com>
On Sat, 5 Jul 2025 15:07:36 +0200 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
> head: 9af2f87d23cb0b15f32e59e4e9da681454a46eab
> commit: 405b04c2042a3448c2986c909608037f05a3bf0c [10/106] mm/damon: add trace event for effective size quota
> config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250705/202507051517.bs3jd8RW-lkp@intel.com/config)
> compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250705/202507051517.bs3jd8RW-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202507051517.bs3jd8RW-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> mm/damon/core.c:2023:3: warning: variable 'sidx' is uninitialized when used here [-Wuninitialized]
> 2023 | sidx++;
> | ^~~~
> mm/damon/core.c:2017:29: note: initialize the variable 'sidx' to silence this warning
> 2017 | unsigned int cidx = 0, sidx;
> | ^
> | = 0
> 1 warning generated.
Thank you for this report! I just posted a fix:
https://lore.kernel.org/20250705172003.52324-1-sj@kernel.org
Thanks,
SJ
[...]
next prev parent reply other threads:[~2025-07-05 17:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-05 13:07 [sj:damon/next 10/106] mm/damon/core.c:2023:3: warning: variable 'sidx' is uninitialized when used here kernel test robot
2025-07-05 17:21 ` SeongJae Park [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-07-05 9:17 kernel test robot
2025-07-05 17:23 ` 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=20250705172110.52351-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=damon@lists.linux.dev \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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;
as well as URLs for NNTP newsgroup(s).