[linux-next:master 2562/2998] arch/arm64/kernel/vdso32/vgettimeofday.c:10:5: error: conflicting types for '__vdso_clock_gettime'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8c9660f6515396aba78d1168d2e17951d653ebf2
commit: 42874e4eb35bdfc54f8514685e50434098ba4f6c [2562/2998] arch: vdso: consolidate gettime prototypes
config: arm64-randconfig-003-20231124 (https://download.01.org/0day-ci/archive/20231124/202311241540.XRrLFEKc-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231124/202311241540.XRrLFEKc-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311241540.XRrLFEKc-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> arch/arm64/kernel/vdso32/vgettimeofday.c:10:5: error: conflicting types for '__vdso_clock_gettime'
      10 | int __vdso_clock_gettime(clockid_t clock,
         |     ^
   include/vdso/gettime.h:16:5: note: previous declaration is here
      16 | int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
         |     ^
>> arch/arm64/kernel/vdso32/vgettimeofday.c:28:5: error: conflicting types for '__vdso_clock_getres'
      28 | int __vdso_clock_getres(clockid_t clock_id,
         |     ^
   include/vdso/gettime.h:15:5: note: previous declaration is here
      15 | int __vdso_clock_getres(clockid_t clock, struct __kernel_timespec *res);
         |     ^
   2 errors generated.
   make[3]: *** [arch/arm64/kernel/vdso32/Makefile:149: arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1 shuffle=1846655798
   make[3]: Target 'arch/arm64/kernel/vdso32/vdso.so' not remade because of errors.
   make[3]: Target 'include/generated/vdso32-offsets.h' not remade because of errors.
   make[2]: *** [arch/arm64/Makefile:195: vdso_prepare] Error 2 shuffle=1846655798
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:234: __sub-make] Error 2 shuffle=1846655798
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:234: __sub-make] Error 2 shuffle=1846655798
   make: Target 'prepare' not remade because of errors.


vim +/__vdso_clock_gettime +10 arch/arm64/kernel/vdso32/vgettimeofday.c

a7f71a2c8903f8 Vincenzo Frascino 2019-06-21   9  
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 @10  int __vdso_clock_gettime(clockid_t clock,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  11  			 struct old_timespec32 *ts)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  12  {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  13  	return __cvdso_clock_gettime32(clock, ts);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  14  }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  15  
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  16  int __vdso_clock_gettime64(clockid_t clock,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  17  			   struct __kernel_timespec *ts)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  18  {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  19  	return __cvdso_clock_gettime(clock, ts);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  20  }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  21  
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  22  int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  23  			struct timezone *tz)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  24  {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  25  	return __cvdso_gettimeofday(tv, tz);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  26  }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  27  
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 @28  int __vdso_clock_getres(clockid_t clock_id,
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  29  			struct old_timespec32 *res)
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  30  {
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  31  	return __cvdso_clock_getres_time32(clock_id, res);
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  32  }
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  33  

:::::: The code at line 10 was first introduced by commit
:::::: a7f71a2c8903f8599312f75233946287c558d9f6 arm64: compat: Add vDSO

:::::: TO: Vincenzo Frascino <vincenzo.frascino@xxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux