public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 145/9999] arch/mips/include/asm/vdso/gettimeofday.h:55:16: error: incompatible pointer to integer conversion initializing 'long' with an expression of type 'long (clockid_t, struct timespec *)' (aka 'long (int, struct timespec *)')
@ 2022-07-27  1:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-27  1:55 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: kbuild-all

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head:   22fdca5318397c60f564ba993e10e37af63a2c37
commit: aec6244f8b7eea46889e689a5c0c3a6461167a97 [145/9999] BACKPORT: lib/vdso: Enable common headers
config: mips-randconfig-r025-20220724 (https://download.01.org/0day-ci/archive/20220727/[email protected]/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 83882606dbd7ffb0bdd3460356202d97705809c8)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mipsel-linux-gnu
        # https://github.com/ammarfaizi2/linux-block/commit/aec6244f8b7eea46889e689a5c0c3a6461167a97
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
        git checkout aec6244f8b7eea46889e689a5c0c3a6461167a97
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash M=arch/mips/kernel

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

Note: the ammarfaizi2-block/google/android/kernel/common/android-4.19-stable HEAD 22fdca5318397c60f564ba993e10e37af63a2c37 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from include/linux/pid.h:6:
   In file included from include/linux/wait.h:9:
   In file included from include/linux/spinlock.h:88:
   In file included from arch/mips/include/asm/spinlock.h:13:
   In file included from ./arch/mips/include/generated/asm/qrwlock.h:1:
   include/asm-generic/qrwlock.h:75:36: warning: comparison of integers of different signs: 'int' and 'u32' (aka 'unsigned int') [-Wsign-compare]
                                                cnts, cnts | _QW_LOCKED) == cnts);
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
   include/linux/compiler.h:76:40: note: expanded from macro 'likely'
   # define likely(x)      __builtin_expect(!!(x), 1)
                                               ^
   In file included from arch/mips/kernel/signal.c:15:
   In file included from include/linux/mm.h:10:
   In file included from include/linux/gfp.h:6:
   include/linux/mmzone.h:996:44: warning: comparison of integers of different signs: 'int' and 'enum zone_type' [-Wsign-compare]
           if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                ~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
   include/linux/compiler.h:76:40: note: expanded from macro 'likely'
   # define likely(x)      __builtin_expect(!!(x), 1)
                                               ^
   In file included from arch/mips/kernel/signal.c:15:
   In file included from include/linux/mm.h:26:
   In file included from include/linux/page_ref.h:7:
   include/linux/page-flags.h:163:21: warning: comparison of integers of different signs: 'const unsigned long' and 'long' [-Wsign-compare]
           return page->flags == PAGE_POISON_PATTERN;
                  ~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/signal.c:15:
   In file included from include/linux/mm.h:1202:
   include/linux/vmstat.h:221:2: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
           for_each_online_cpu(cpu)
           ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cpumask.h:778:36: note: expanded from macro 'for_each_online_cpu'
   #define for_each_online_cpu(cpu)   for_each_cpu((cpu), cpu_online_mask)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
                   (cpu) < nr_cpu_ids;)
                    ~~~  ^ ~~~~~~~~~~
   In file included from arch/mips/kernel/signal.c:26:
   In file included from include/linux/syscalls.h:85:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:7:
   In file included from include/linux/trace_seq.h:5:
   include/linux/seq_buf.h:35:12: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           s->buffer = buf;
                     ^ ~~~
   In file included from arch/mips/kernel/signal.c:26:
   In file included from include/linux/syscalls.h:85:
   In file included from include/trace/syscall.h:7:
   In file included from include/linux/trace_events.h:10:
   In file included from include/linux/perf_event.h:57:
   In file included from include/linux/cgroup.h:28:
   include/linux/cgroup-defs.h:475:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
           struct cgroup cgrp;
                         ^
   In file included from arch/mips/kernel/signal.c:28:
   In file included from include/linux/tracehook.h:54:
   In file included from include/linux/blk-cgroup.h:21:
   In file included from include/linux/blkdev.h:11:
   include/linux/genhd.h:314:2: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
           for_each_possible_cpu(i)
           ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cpumask.h:777:36: note: expanded from macro 'for_each_possible_cpu'
   #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
                   (cpu) < nr_cpu_ids;)
                    ~~~  ^ ~~~~~~~~~~
   In file included from arch/mips/kernel/signal.c:28:
   In file included from include/linux/tracehook.h:54:
   In file included from include/linux/blk-cgroup.h:21:
   In file included from include/linux/blkdev.h:21:
   In file included from include/linux/bio.h:25:
   include/linux/bio-crypt-ctx.h:124:11: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
           while (i < BLK_CRYPTO_DUN_ARRAY_SIZE) {
                  ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bio-crypt-ctx.h:140:18: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
           while (inc && i < BLK_CRYPTO_DUN_ARRAY_SIZE) {
                         ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/signal.c:28:
   In file included from include/linux/tracehook.h:54:
   In file included from include/linux/blk-cgroup.h:21:
   In file included from include/linux/blkdev.h:21:
   include/linux/bio.h:413:14: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
           if (sectors >= bio_sectors(bio))
               ~~~~~~~ ^  ~~~~~~~~~~~~~~~~
   In file included from arch/mips/kernel/signal.c:30:
   In file included from arch/mips/include/asm/abi.h:16:
   In file included from arch/mips/include/asm/vdso.h:15:
   In file included from include/vdso/datapage.h:114:
   arch/mips/include/asm/vdso/gettimeofday.h:55:31: error: use of undeclared identifier '__NR_clock_gettime64'; did you mean 'sys_clock_gettime'?
           register long nr asm("v0") = __NR_clock_gettime64;
                                        ^~~~~~~~~~~~~~~~~~~~
                                        sys_clock_gettime
   include/linux/syscalls.h:585:17: note: 'sys_clock_gettime' declared here
   asmlinkage long sys_clock_gettime(clockid_t which_clock,
                   ^
   In file included from arch/mips/kernel/signal.c:30:
   In file included from arch/mips/include/asm/abi.h:16:
   In file included from arch/mips/include/asm/vdso.h:15:
   In file included from include/vdso/datapage.h:114:
>> arch/mips/include/asm/vdso/gettimeofday.h:55:16: error: incompatible pointer to integer conversion initializing 'long' with an expression of type 'long (clockid_t, struct timespec *)' (aka 'long (int, struct timespec *)') [-Wint-conversion]
           register long nr asm("v0") = __NR_clock_gettime64;
                         ^              ~~~~~~~~~~~~~~~~~~~~
   arch/mips/include/asm/vdso/gettimeofday.h:79:31: error: use of undeclared identifier '__NR_clock_getres_time64'
           register long nr asm("v0") = __NR_clock_getres_time64;
                                        ^
   13 warnings and 3 errors generated.


vim +55 arch/mips/include/asm/vdso/gettimeofday.h

6b7f832e465d88 Vincenzo Frascino 2019-06-21  44  
6b7f832e465d88 Vincenzo Frascino 2019-06-21  45  static __always_inline long clock_gettime_fallback(
6b7f832e465d88 Vincenzo Frascino 2019-06-21  46  					clockid_t _clkid,
6b7f832e465d88 Vincenzo Frascino 2019-06-21  47  					struct __kernel_timespec *_ts)
6b7f832e465d88 Vincenzo Frascino 2019-06-21  48  {
6b7f832e465d88 Vincenzo Frascino 2019-06-21  49  	register struct __kernel_timespec *ts asm("a1") = _ts;
6b7f832e465d88 Vincenzo Frascino 2019-06-21  50  	register clockid_t clkid asm("a0") = _clkid;
6b7f832e465d88 Vincenzo Frascino 2019-06-21  51  	register long ret asm("v0");
6b7f832e465d88 Vincenzo Frascino 2019-06-21  52  #if _MIPS_SIM == _MIPS_SIM_ABI64
6b7f832e465d88 Vincenzo Frascino 2019-06-21  53  	register long nr asm("v0") = __NR_clock_gettime;
6b7f832e465d88 Vincenzo Frascino 2019-06-21  54  #else
6b7f832e465d88 Vincenzo Frascino 2019-06-21 @55  	register long nr asm("v0") = __NR_clock_gettime64;
6b7f832e465d88 Vincenzo Frascino 2019-06-21  56  #endif
6b7f832e465d88 Vincenzo Frascino 2019-06-21  57  	register long error asm("a3");
6b7f832e465d88 Vincenzo Frascino 2019-06-21  58  
6b7f832e465d88 Vincenzo Frascino 2019-06-21  59  	asm volatile(
6b7f832e465d88 Vincenzo Frascino 2019-06-21  60  	"       syscall\n"
6b7f832e465d88 Vincenzo Frascino 2019-06-21  61  	: "=r" (ret), "=r" (error)
6b7f832e465d88 Vincenzo Frascino 2019-06-21  62  	: "r" (clkid), "r" (ts), "r" (nr)
6b7f832e465d88 Vincenzo Frascino 2019-06-21  63  	: "$1", "$3", "$8", "$9", "$10", "$11", "$12", "$13",
6b7f832e465d88 Vincenzo Frascino 2019-06-21  64  	  "$14", "$15", "$24", "$25", "hi", "lo", "memory");
6b7f832e465d88 Vincenzo Frascino 2019-06-21  65  
6b7f832e465d88 Vincenzo Frascino 2019-06-21  66  	return error ? -ret : ret;
6b7f832e465d88 Vincenzo Frascino 2019-06-21  67  }
6b7f832e465d88 Vincenzo Frascino 2019-06-21  68  

:::::: The code at line 55 was first introduced by commit
:::::: 6b7f832e465d88fca5f3a07b85e664f962c88e0b BACKPORT: mips: Add support for generic vDSO

:::::: TO: Vincenzo Frascino <[email protected]>
:::::: CC: Alistair Delva <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-27  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-27  1:55 [ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 145/9999] arch/mips/include/asm/vdso/gettimeofday.h:55:16: error: incompatible pointer to integer conversion initializing 'long' with an expression of type 'long (clockid_t, struct timespec *)' (aka 'long (int, struct timespec *)') kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox