All of lore.kernel.org
 help / color / mirror / Atom feed
* [palmer:for-next 18/18] arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime'
@ 2021-08-25 12:15 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-25 12:15 UTC (permalink / raw)
  To: Saleem Abdulrasool
  Cc: clang-built-linux, kbuild-all, linux-kernel, Palmer Dabbelt

[-- Attachment #1: Type: text/plain, Size: 8630 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next
head:   fde9c59aebafb91caeed816cc510b56f14aa63ae
commit: fde9c59aebafb91caeed816cc510b56f14aa63ae [18/18] riscv: explicitly use symbol offsets for VDSO
config: riscv-randconfig-r034-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git/commit/?id=fde9c59aebafb91caeed816cc510b56f14aa63ae
        git remote add palmer https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git
        git fetch --no-tags palmer for-next
        git checkout fde9c59aebafb91caeed816cc510b56f14aa63ae
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
--
>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
   make[2]: *** [scripts/Makefile.build:271: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1
   make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
   make[1]: *** [arch/riscv/Makefile:113: vdso_prepare] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:220: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
   make[2]: *** [scripts/Makefile.build:271: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1
   make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
   make[1]: *** [arch/riscv/Makefile:113: vdso_prepare] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:220: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/__cvdso_clock_gettime +16 arch/riscv/kernel/vdso/vgettimeofday.c

ad5d1122b82fbd6 Vincent Chen 2020-06-09  11  
e93b327dbf3d37f Vincent Chen 2020-06-23  12  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  13  int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  14  int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  15  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @16  	return __cvdso_clock_gettime(clock, ts);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  17  }
ad5d1122b82fbd6 Vincent Chen 2020-06-09  18  
e93b327dbf3d37f Vincent Chen 2020-06-23  19  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  20  int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  21  int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  22  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @23  	return __cvdso_gettimeofday(tv, tz);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  24  }
ad5d1122b82fbd6 Vincent Chen 2020-06-09  25  
e93b327dbf3d37f Vincent Chen 2020-06-23  26  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  27  int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  28  int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  29  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @30  	return __cvdso_clock_getres(clock_id, res);

:::::: The code at line 16 was first introduced by commit
:::::: ad5d1122b82fbd6a816d1b9d26ee01a6dbc2d757 riscv: use vDSO common flow to reduce the latency of the time-related functions

:::::: TO: Vincent Chen <vincent.chen@sifive.com>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38451 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [palmer:for-next 18/18] arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime'
@ 2021-08-25 12:15 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-25 12:15 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 8768 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git for-next
head:   fde9c59aebafb91caeed816cc510b56f14aa63ae
commit: fde9c59aebafb91caeed816cc510b56f14aa63ae [18/18] riscv: explicitly use symbol offsets for VDSO
config: riscv-randconfig-r034-20210825 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project ea08c4cd1c0869ec5024a8bb3f5cdf06ab03ae83)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git/commit/?id=fde9c59aebafb91caeed816cc510b56f14aa63ae
        git remote add palmer https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git
        git fetch --no-tags palmer for-next
        git checkout fde9c59aebafb91caeed816cc510b56f14aa63ae
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
--
>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
   make[2]: *** [scripts/Makefile.build:271: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1
   make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
   make[1]: *** [arch/riscv/Makefile:113: vdso_prepare] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:220: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
>> arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_gettime(clock, ts);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:16:9: note: did you mean '__vdso_clock_gettime'?
   arch/riscv/kernel/vdso/vgettimeofday.c:14:5: note: '__vdso_clock_gettime' declared here
   int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:23:9: error: implicit declaration of function '__cvdso_gettimeofday' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_gettimeofday(tv, tz);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:23:9: note: did you mean '__vdso_gettimeofday'?
   arch/riscv/kernel/vdso/vgettimeofday.c:21:5: note: '__vdso_gettimeofday' declared here
   int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
       ^
>> arch/riscv/kernel/vdso/vgettimeofday.c:30:9: error: implicit declaration of function '__cvdso_clock_getres' [-Werror,-Wimplicit-function-declaration]
           return __cvdso_clock_getres(clock_id, res);
                  ^
   arch/riscv/kernel/vdso/vgettimeofday.c:30:9: note: did you mean '__vdso_clock_getres'?
   arch/riscv/kernel/vdso/vgettimeofday.c:28:5: note: '__vdso_clock_getres' declared here
   int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
       ^
   3 errors generated.
   make[2]: *** [scripts/Makefile.build:271: arch/riscv/kernel/vdso/vgettimeofday.o] Error 1
   make[2]: Target 'include/generated/vdso-offsets.h' not remade because of errors.
   make[1]: *** [arch/riscv/Makefile:113: vdso_prepare] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:220: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/__cvdso_clock_gettime +16 arch/riscv/kernel/vdso/vgettimeofday.c

ad5d1122b82fbd6 Vincent Chen 2020-06-09  11  
e93b327dbf3d37f Vincent Chen 2020-06-23  12  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  13  int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  14  int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  15  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @16  	return __cvdso_clock_gettime(clock, ts);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  17  }
ad5d1122b82fbd6 Vincent Chen 2020-06-09  18  
e93b327dbf3d37f Vincent Chen 2020-06-23  19  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  20  int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  21  int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  22  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @23  	return __cvdso_gettimeofday(tv, tz);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  24  }
ad5d1122b82fbd6 Vincent Chen 2020-06-09  25  
e93b327dbf3d37f Vincent Chen 2020-06-23  26  extern
e93b327dbf3d37f Vincent Chen 2020-06-23  27  int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
ad5d1122b82fbd6 Vincent Chen 2020-06-09  28  int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
ad5d1122b82fbd6 Vincent Chen 2020-06-09  29  {
ad5d1122b82fbd6 Vincent Chen 2020-06-09 @30  	return __cvdso_clock_getres(clock_id, res);

:::::: The code at line 16 was first introduced by commit
:::::: ad5d1122b82fbd6a816d1b9d26ee01a6dbc2d757 riscv: use vDSO common flow to reduce the latency of the time-related functions

:::::: TO: Vincent Chen <vincent.chen@sifive.com>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38451 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-25 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 12:15 [palmer:for-next 18/18] arch/riscv/kernel/vdso/vgettimeofday.c:16:9: error: implicit declaration of function '__cvdso_clock_gettime' kernel test robot
2021-08-25 12:15 ` 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.