[s390:features 6/6] arch/s390/kernel/vdso64/vdso64_generic.c:4:5: warning: no previous prototype for function '__s390_vdso_gettimeofday'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git features
head:   4bff8cb5450287e246d365b719148b2d9364c292
commit: 4bff8cb5450287e246d365b719148b2d9364c292 [6/6] s390: convert to GENERIC_VDSO
config: s390-randconfig-r005-20200902 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 1284dc34abd11ce4275ad21c0470ad8c679b59b7)
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 s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        git checkout 4bff8cb5450287e246d365b719148b2d9364c292
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 

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

All warnings (new ones prefixed by >>):

>> arch/s390/kernel/vdso64/vdso64_generic.c:4:5: warning: no previous prototype for function '__s390_vdso_gettimeofday' [-Wmissing-prototypes]
   int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv,
       ^
   arch/s390/kernel/vdso64/vdso64_generic.c:4:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv,
   ^
   static 
>> arch/s390/kernel/vdso64/vdso64_generic.c:10:5: warning: no previous prototype for function '__s390_vdso_clock_gettime' [-Wmissing-prototypes]
   int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
       ^
   arch/s390/kernel/vdso64/vdso64_generic.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
   ^
   static 
>> arch/s390/kernel/vdso64/vdso64_generic.c:15:5: warning: no previous prototype for function '__s390_vdso_clock_getres' [-Wmissing-prototypes]
   int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts)
       ^
   arch/s390/kernel/vdso64/vdso64_generic.c:15:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts)
   ^
   static 
   3 warnings generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?id=4bff8cb5450287e246d365b719148b2d9364c292
git remote add s390 https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git
git fetch --no-tags s390 features
git checkout 4bff8cb5450287e246d365b719148b2d9364c292
vim +/__s390_vdso_gettimeofday +4 arch/s390/kernel/vdso64/vdso64_generic.c

     3	
   > 4	int __s390_vdso_gettimeofday(struct __kernel_old_timeval *tv,
     5				     struct timezone *tz)
     6	{
     7		return __cvdso_gettimeofday(tv, tz);
     8	}
     9	
  > 10	int __s390_vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
    11	{
    12		return __cvdso_clock_gettime(clock, ts);
    13	}
    14	
  > 15	int __s390_vdso_clock_getres(clockid_t clock, struct __kernel_timespec *ts)

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

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux