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:kunit-kselftests-integration 39/47] lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_gettimeofday.c:47:13: error: variable '_rval' is uninitialized when used here
Date: Thu, 3 Jul 2025 22:52:19 +0200 [thread overview]
Message-ID: <202507032200.vEEzeWmw-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git kunit-kselftests-integration
head: 1d66824abdccea956a455fc694f5967c0163ce31
commit: fc4285b7a7e0aa6052ef3a59a2a3920f2ab86ed3 [39/47] vdso: hook up selftests to kunit
config: powerpc-randconfig-2002-20250701 (https://download.01.org/0day-ci/archive/20250703/202507032200.vEEzeWmw-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250703/202507032200.vEEzeWmw-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/202507032200.vEEzeWmw-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from lib/vdso/tests/vdso_test_gettimeofday.c:4:
>> lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_gettimeofday.c:47:13: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
47 | long ret = VDSO_CALL(gtod, 2, &tv, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_gettimeofday.c:47:13: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
1 error generated.
--
In file included from lib/vdso/tests/vdso_test_getcpu.c:4:
>> lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_getcpu.c:46:8: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
46 | ret = VDSO_CALL(get_cpu, 3, &cpu, &node, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_getcpu.c:46:8: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
1 error generated.
--
In file included from lib/vdso/tests/vdso_test_abi.c:4:
>> lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:62:13: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
62 | long ret = VDSO_CALL(vdso_gettimeofday, 2, &tv, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:62:13: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
In file included from lib/vdso/tests/vdso_test_abi.c:4:
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:87:13: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
87 | long ret = VDSO_CALL(vdso_clock_gettime, 2, clk_id, &ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:87:13: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
In file included from lib/vdso/tests/vdso_test_abi.c:4:
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:112:13: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
112 | long ret = VDSO_CALL(vdso_time, 1, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:112:13: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
In file included from lib/vdso/tests/vdso_test_abi.c:4:
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:139:13: error: variable '_rval' is uninitialized when used here [-Werror,-Wuninitialized]
139 | long ret = VDSO_CALL(vdso_clock_getres, 2, clk_id, &ts);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:59:10: note: expanded from macro 'VDSO_CALL'
59 | : "r" (_rval) \
| ^~~~~
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_abi.c:139:13: note: variable '_rval' is declared here
lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_call.h:47:2: note: expanded from macro 'VDSO_CALL'
47 | register long _rval asm ("r3"); \
| ^
4 errors generated.
vim +/_rval +47 lib/vdso/tests/../../../tools/testing/selftests/vDSO/vdso_test_gettimeofday.c
2650554da3f895 tools/testing/selftests/vDSO/vdso_test.c Greg Hackmann 2017-11-01 23
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 24 int main(int argc, char **argv)
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 25 {
48f044a784d678 tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Tiezhu Yang 2024-04-28 26 const char *version = versions[VDSO_VERSION];
48f044a784d678 tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Tiezhu Yang 2024-04-28 27 const char **name = (const char **)&names[VDSO_NAMES];
48f044a784d678 tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Tiezhu Yang 2024-04-28 28
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 29 unsigned long sysinfo_ehdr = getauxval(AT_SYSINFO_EHDR);
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 30 if (!sysinfo_ehdr) {
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 31 printf("AT_SYSINFO_EHDR is not present!\n");
d2d49495b5c0df tools/testing/selftests/vDSO/vdso_test.c Shuah Khan (Samsung OSG 2018-06-22 32) return KSFT_SKIP;
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 33 }
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 34
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 35 vdso_init_from_sysinfo_ehdr(getauxval(AT_SYSINFO_EHDR));
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 36
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 37 /* Find gettimeofday. */
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 38 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
48f044a784d678 tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Tiezhu Yang 2024-04-28 39 gtod_t gtod = (gtod_t)vdso_sym(version, name[0]);
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 40
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 41 if (!gtod) {
48f044a784d678 tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Tiezhu Yang 2024-04-28 42 printf("Could not find %s\n", name[0]);
d2d49495b5c0df tools/testing/selftests/vDSO/vdso_test.c Shuah Khan (Samsung OSG 2018-06-22 43) return KSFT_SKIP;
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 44 }
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 45
4ebbefd6b93c34 Documentation/vDSO/vdso_test.c Andy Lutomirski 2014-06-12 46 struct timeval tv;
6eda706a535c3d tools/testing/selftests/vDSO/vdso_test_gettimeofday.c Christophe Leroy 2024-08-30 @47 long ret = VDSO_CALL(gtod, 2, &tv, 0);
:::::: The code at line 47 was first introduced by commit
:::::: 6eda706a535c3d0119eaefaad5fc119609639ed2 selftests: vDSO: fix the way vDSO functions are called for powerpc
:::::: TO: Christophe Leroy <christophe.leroy@csgroup.eu>
:::::: CC: Jason A. Donenfeld <Jason@zx2c4.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-07-03 20:53 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=202507032200.vEEzeWmw-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;
as well as URLs for NNTP newsgroup(s).