tree:
https://android.googlesource.com/kernel/common android-4.19
head: a1728ecf5aed447128ca7143f29d8b0f5f6263c5
commit: 23dea1cf7ed3846719448e74feeb56c28e3a9019 [40/106] UPSTREAM: mips: Add clock_getres
entry point
config: mips-malta_kvm_guest_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 23dea1cf7ed3846719448e74feeb56c28e3a9019
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)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:70:31: error: '__NR_clock_gettime64'
undeclared (first use in this function)
70 | register long nr asm("v0") = __NR_clock_gettime64;
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/vdso/gettimeofday.h:70:31: 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:94:31: error:
'__NR_clock_getres_time64' undeclared (first use in this function)
94
| register long nr asm("v0") = __NR_clock_getres_time64;
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
lib/vdso/gettimeofday.c: In function '__cvdso_clock_gettime32':
lib/vdso/gettimeofday.c:113:6: error: dereferencing pointer to incomplete type
'struct compat_timespec'
113 | res->tv_sec = ts.tv_sec;
| ^~
vim +/__NR_clock_getres_time64 +94 arch/mips/include/asm/vdso/gettimeofday.h
83
84 static __always_inline int clock_getres_fallback(
85 clockid_t _clkid,
86 struct __kernel_timespec *_ts)
87 {
88 register struct __kernel_timespec *ts asm("a1") = _ts;
89 register clockid_t clkid asm("a0") = _clkid;
90 register long ret asm("v0");
91 #if _MIPS_SIM == _MIPS_SIM_ABI64
92 register long nr asm("v0") = __NR_clock_getres;
93 #else
94 register long nr asm("v0") = __NR_clock_getres_time64;
95 #endif
96 register long error asm("a3");
97
98 asm volatile(
99 " syscall\n"
100 : "=r" (ret), "=r" (error)
101 : "r" (clkid), "r" (ts), "r" (nr)
102 : "$1", "$3", "$8", "$9", "$10",
"$11", "$12", "$13",
103 "$14", "$15", "$24", "$25",
"hi", "lo", "memory");
104
105 return error ? -ret : ret;
106 }
107
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org