All of lore.kernel.org
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 781/9999] arch/mips/include/asm/vdso/gettimeofday.h:68:38: error: '__NR_clock_gettime64' undeclared
@ 2022-03-03  4:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-03  4:54 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Alistair Delva,
	Paul Burton, 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: 6b7f832e465d88fca5f3a07b85e664f962c88e0b [781/9999] BACKPORT: mips: Add support for generic vDSO
config: mips-randconfig-r016-20211028 (https://download.01.org/0day-ci/archive/20220303/202203031232.U5Jeb2G3-lkp@intel.com/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/6b7f832e465d88fca5f3a07b85e664f962c88e0b
        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 6b7f832e465d88fca5f3a07b85e664f962c88e0b
        # 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

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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:68:38: error: '__NR_clock_gettime64' undeclared (first use in this function)
      68 |         register long nr asm("v0") = __NR_clock_gettime64;
         |                                      ^~~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/vdso/gettimeofday.h:68:38: note: each undeclared identifier is reported only once for each function it appears in
   In file included from <command-line>:
   lib/vdso/gettimeofday.c: In function '__cvdso_clock_gettime32':
   lib/vdso/gettimeofday.c:113:20: error: invalid use of undefined type 'struct compat_timespec'
     113 |                 res->tv_sec = ts.tv_sec;
         |                    ^~
   lib/vdso/gettimeofday.c:114:20: error: invalid use of undefined type 'struct compat_timespec'
     114 |                 res->tv_nsec = ts.tv_nsec;
         |                    ^~
   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:20:5: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes]
      20 | int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
         |     ^~~~~~~~~~~~~~~~~~~


vim +/__NR_clock_gettime64 +68 arch/mips/include/asm/vdso/gettimeofday.h

    57	
    58	static __always_inline long clock_gettime_fallback(
    59						clockid_t _clkid,
    60						struct __kernel_timespec *_ts)
    61	{
    62		register struct __kernel_timespec *ts asm("a1") = _ts;
    63		register clockid_t clkid asm("a0") = _clkid;
    64		register long ret asm("v0");
    65	#if _MIPS_SIM == _MIPS_SIM_ABI64
    66		register long nr asm("v0") = __NR_clock_gettime;
    67	#else
  > 68		register long nr asm("v0") = __NR_clock_gettime64;
    69	#endif
    70		register long error asm("a3");
    71	
    72		asm volatile(
    73		"       syscall\n"
    74		: "=r" (ret), "=r" (error)
    75		: "r" (clkid), "r" (ts), "r" (nr)
    76		: "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
    77		  "$14", "$15", "$24", "$25", "hi", "lo", "memory");
    78	
    79		return error ? -ret : ret;
    80	}
    81	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-03  4:54 [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 781/9999] arch/mips/include/asm/vdso/gettimeofday.h:68:38: error: '__NR_clock_gettime64' undeclared kernel test robot

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.