GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 811/9999] arch/mips/vdso/vgettimeofday.c:17:16: error: implicit declaration of function '__cvdso_clock_gettime32'; did you mean '__cvdso_clock_gettime'?
@ 2022-03-03  8:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-03  8:48 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Alistair Delva,
	Thomas Gleixner, Andy Lutomirski, Mark Salyzyn

Hi Vincenzo,

FYI, the error/warning still remains.

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head:   90a691fca4c2525068d9908ac203e9f09e4e33c0
commit: 0854e59101a9219eb1607fb584dde8da4dea220e [811/9999] UPSTREAM: lib/vdso: Build 32 bit specific functions in the right context
config: mips-randconfig-r016-20211028 (https://download.01.org/0day-ci/archive/20220303/[email protected]/config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ammarfaizi2/linux-block/commit/0854e59101a9219eb1607fb584dde8da4dea220e
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
        git checkout 0854e59101a9219eb1607fb584dde8da4dea220e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/vdso/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   In file included from lib/vdso/gettimeofday.c:26,
                    from <command-line>:
   arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_gettime_fallback':
   arch/mips/include/asm/vdso/gettimeofday.h:59:38: error: '__NR_clock_gettime64' undeclared (first use in this function)
      59 |         register long nr asm("v0") = __NR_clock_gettime64;
         |                                      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/vdso/gettimeofday.h:59:38: note: each undeclared identifier is reported only once for each function it appears in
   arch/mips/include/asm/vdso/gettimeofday.h: In function 'clock_getres_fallback':
   arch/mips/include/asm/vdso/gettimeofday.h:83:38: error: '__NR_clock_getres_time64' undeclared (first use in this function)
      83 |         register long nr asm("v0") = __NR_clock_getres_time64;
         |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
   arch/mips/vdso/vgettimeofday.c: At top level:
   arch/mips/vdso/vgettimeofday.c:14:5: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes]
      14 | int __vdso_clock_gettime(clockid_t clock,
         |     ^~~~~~~~~~~~~~~~~~~~
   arch/mips/vdso/vgettimeofday.c: In function '__vdso_clock_gettime':
>> arch/mips/vdso/vgettimeofday.c:17:16: error: implicit declaration of function '__cvdso_clock_gettime32'; did you mean '__cvdso_clock_gettime'? [-Werror=implicit-function-declaration]
      17 |         return __cvdso_clock_gettime32(clock, ts);
         |                ^~~~~~~~~~~~~~~~~~~~~~~
         |                __cvdso_clock_gettime
   arch/mips/vdso/vgettimeofday.c: At top level:
   arch/mips/vdso/vgettimeofday.c:36:5: warning: no previous prototype for '__vdso_clock_getres' [-Wmissing-prototypes]
      36 | int __vdso_clock_getres(clockid_t clock_id,
         |     ^~~~~~~~~~~~~~~~~~~
   arch/mips/vdso/vgettimeofday.c: In function '__vdso_clock_getres':
>> arch/mips/vdso/vgettimeofday.c:39:16: error: implicit declaration of function '__cvdso_clock_getres_time32'; did you mean '__cvdso_clock_getres_common'? [-Werror=implicit-function-declaration]
      39 |         return __cvdso_clock_getres_time32(clock_id, res);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                __cvdso_clock_getres_common
   arch/mips/vdso/vgettimeofday.c: At top level:
   arch/mips/vdso/vgettimeofday.c:42:5: warning: no previous prototype for '__vdso_clock_gettime64' [-Wmissing-prototypes]
      42 | int __vdso_clock_gettime64(clockid_t clock,
         |     ^~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +17 arch/mips/vdso/vgettimeofday.c

6b7f832e465d88 Vincenzo Frascino 2019-06-21  12  
6b7f832e465d88 Vincenzo Frascino 2019-06-21  13  #if _MIPS_SIM != _MIPS_SIM_ABI64
6b7f832e465d88 Vincenzo Frascino 2019-06-21  14  int __vdso_clock_gettime(clockid_t clock,
6b7f832e465d88 Vincenzo Frascino 2019-06-21  15  			 struct old_timespec32 *ts)
6b7f832e465d88 Vincenzo Frascino 2019-06-21  16  {
6b7f832e465d88 Vincenzo Frascino 2019-06-21 @17  	return __cvdso_clock_gettime32(clock, ts);
6b7f832e465d88 Vincenzo Frascino 2019-06-21  18  }
6b7f832e465d88 Vincenzo Frascino 2019-06-21  19  
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  20  #ifdef CONFIG_MIPS_CLOCK_VSYSCALL
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  21  
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  22  /*
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  23   * This is behind the ifdef so that we don't provide the symbol when there's no
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  24   * possibility of there being a usable clocksource, because there's nothing we
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  25   * can do without it. When libc fails the symbol lookup it should fall back on
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  26   * the standard syscall path.
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  27   */
6b7f832e465d88 Vincenzo Frascino 2019-06-21  28  int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
6b7f832e465d88 Vincenzo Frascino 2019-06-21  29  			struct timezone *tz)
6b7f832e465d88 Vincenzo Frascino 2019-06-21  30  {
6b7f832e465d88 Vincenzo Frascino 2019-06-21  31  	return __cvdso_gettimeofday(tv, tz);
6b7f832e465d88 Vincenzo Frascino 2019-06-21  32  }
6b7f832e465d88 Vincenzo Frascino 2019-06-21  33  
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  34  #endif /* CONFIG_MIPS_CLOCK_VSYSCALL */
cf84512fe7aac9 Vincenzo Frascino 2019-11-29  35  
23dea1cf7ed384 Vincenzo Frascino 2019-06-21  36  int __vdso_clock_getres(clockid_t clock_id,
23dea1cf7ed384 Vincenzo Frascino 2019-06-21  37  			struct old_timespec32 *res)
23dea1cf7ed384 Vincenzo Frascino 2019-06-21  38  {
23dea1cf7ed384 Vincenzo Frascino 2019-06-21 @39  	return __cvdso_clock_getres_time32(clock_id, res);
23dea1cf7ed384 Vincenzo Frascino 2019-06-21  40  }
23dea1cf7ed384 Vincenzo Frascino 2019-06-21  41  

:::::: The code at line 17 was first introduced by commit
:::::: 6b7f832e465d88fca5f3a07b85e664f962c88e0b BACKPORT: mips: Add support for generic vDSO

:::::: TO: Vincenzo Frascino <[email protected]>
:::::: CC: Alistair Delva <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

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

only message in thread, other threads:[~2022-03-03  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03  8:48 [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 811/9999] arch/mips/vdso/vgettimeofday.c:17:16: error: implicit declaration of function '__cvdso_clock_gettime32'; did you mean '__cvdso_clock_gettime'? 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