From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/vdso-ptp 41/41] kernel/time/../../tools/testing/selftests/timers/auxclock.c:156:9: error: variable '_rval' is uninitialized when used here
Date: Wed, 18 Jun 2025 02:55:26 +0800 [thread overview]
Message-ID: <202506180223.BOOk5jDK-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/vdso-ptp
head: 2af36b301dbd31b23e13ee0d9d6cf65a475caba6
commit: 2af36b301dbd31b23e13ee0d9d6cf65a475caba6 [41/41] selftests/timers/auxclock: Test vDSO functionality
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20250618/202506180223.BOOk5jDK-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250618/202506180223.BOOk5jDK-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/202506180223.BOOk5jDK-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/time/test_auxclock.c:1:
>> kernel/time/../../tools/testing/selftests/timers/auxclock.c:156:9: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
156 | ret = VDSO_CALL(self->vdso_clock_gettime, 2, clockid, &_ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
kernel/time/../../tools/testing/selftests/timers/auxclock.c:156:9: note: variable '_rval' is declared here
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
In file included from kernel/time/test_auxclock.c:1:
kernel/time/../../tools/testing/selftests/timers/auxclock.c:154:10: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
154 | return VDSO_CALL(self->vdso_clock_gettime64, 2, clockid, ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
kernel/time/../../tools/testing/selftests/timers/auxclock.c:154:10: note: variable '_rval' is declared here
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
In file included from kernel/time/test_auxclock.c:1:
kernel/time/../../tools/testing/selftests/timers/auxclock.c:172:9: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
172 | ret = VDSO_CALL(self->vdso_clock_getres, 2, clockid, &_ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
kernel/time/../../tools/testing/selftests/timers/auxclock.c:172:9: note: variable '_rval' is declared here
kernel/time/../../tools/testing/selftests/timers/../vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
3 errors generated.
vim +/_rval +156 kernel/time/../../tools/testing/selftests/timers/auxclock.c
146
147 static int vdso_clock_gettime64(FIXTURE_DATA(auxclock) *self, __kernel_clockid_t clockid,
148 struct __kernel_timespec *ts)
149 {
150 struct timespec _ts;
151 int ret;
152
153 if (self->vdso_clock_gettime64) {
154 return VDSO_CALL(self->vdso_clock_gettime64, 2, clockid, ts);
155 } else if (self->vdso_clock_gettime) {
> 156 ret = VDSO_CALL(self->vdso_clock_gettime, 2, clockid, &_ts);
157 if (!ret)
158 timespec_to_kernel_timespec(&_ts, ts);
159 return ret;
160 } else {
161 return -ENOSYS;
162 }
163 }
164
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-06-17 18:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202506180223.BOOk5jDK-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox