From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh (Schneider Electric)"
<thomas.weissschuh@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/auxclock-nanosleep 18/44] kernel/time/benchmarks.c:38:22: warning: 'count' is used uninitialized
Date: Sat, 21 Mar 2026 13:52:07 +0800 [thread overview]
Message-ID: <202603211302.zKhBnqb2-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep
head: 40e3ab4d08362c43874fd99e70d6ef6f57f086ef
commit: 7fe24e0ff2f96db84d1ce465aca76bd42c169ab7 [18/44] benchmarks
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260321/202603211302.zKhBnqb2-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260321/202603211302.zKhBnqb2-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/202603211302.zKhBnqb2-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/time/benchmarks.c: In function 'benchmark_ktime_get_read':
>> kernel/time/benchmarks.c:38:22: warning: 'count' is used uninitialized [-Wuninitialized]
38 | count++;
| ~~~~~^~
kernel/time/benchmarks.c:33:13: note: 'count' was declared here
33 | u64 count;
| ^~~~~
vim +/count +38 kernel/time/benchmarks.c
29
30 static int benchmark_ktime_get_read(void *data, u64 *value)
31 {
32 ktime_t end;
33 u64 count;
34
35 end = ktime_get() + BENCHMARK_TIME;
36
37 do {
> 38 count++;
39 } while (ktime_get() < end);
40
41 *value = count;
42 return 0;
43 }
44
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-03-21 5:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 5:52 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-20 18:37 [thomas-weissschuh:b4/auxclock-nanosleep 18/44] kernel/time/benchmarks.c:38:22: warning: 'count' is used uninitialized kernel test robot
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=202603211302.zKhBnqb2-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=thomas.weissschuh@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.