tree:
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next
head: 5cc38fa6fc7448d40ff214d5c087f508355e8446
commit: 6e3cfcf6ea031fe2a0068fa7c380c4cf7bcd8936 [2/11] riscv: use vDSO common flow to
reduce the latency of the time-related functions
config: riscv-randconfig-r022-20200607 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
bc2b70982be8f5250cd0082a7190f8b417bd4dfe)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git checkout 6e3cfcf6ea031fe2a0068fa7c380c4cf7bcd8936
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> arch/riscv/kernel/vdso/vgettimeofday.c:12:5: warning: no previous
prototype for function '__vdso_clock_gettime' [-Wmissing-prototypes]
int
__vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
^
arch/riscv/kernel/vdso/vgettimeofday.c:12:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
^
static
> arch/riscv/kernel/vdso/vgettimeofday.c:17:5: warning: no previous
prototype for function '__vdso_gettimeofday' [-Wmissing-prototypes]
int
__vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
^
arch/riscv/kernel/vdso/vgettimeofday.c:17:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
^
static
> arch/riscv/kernel/vdso/vgettimeofday.c:22:5: warning: no previous
prototype for function '__vdso_clock_getres' [-Wmissing-prototypes]
int
__vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
^
arch/riscv/kernel/vdso/vgettimeofday.c:22:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
^
static
3 warnings generated.
vim +/__vdso_clock_gettime +12 arch/riscv/kernel/vdso/vgettimeofday.c
11
12 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec
*ts)
13 {
14 return __cvdso_clock_gettime(clock, ts);
15 }
16
17 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct
timezone *tz)
18 {
19 return __cvdso_gettimeofday(tv, tz);
20 }
21
22 int __vdso_clock_getres(clockid_t clock_id, struct
__kernel_timespec *res)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org