llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [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
@ 2025-07-03 20:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-03 20:52 UTC (permalink / raw)
  To: Thomas Weißschuh; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-03 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03 20:52 [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 kernel test robot

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).