From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gnuweeb.org (Postfix) with ESMTPS id 6977C80638 for ; Wed, 27 Jul 2022 01:55:37 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gNRZw4Yp; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658886937; x=1690422937; h=date:from:to:cc:subject:message-id:mime-version; bh=MaK7MYZgLH9xJZah/RdV0vKtd7AilY33eGE1MjC5r4Y=; b=gNRZw4YpUFHme76nipSYaoH6nM2weR917ezXWjA1qSuoC/oI6ci9xAEY BCh+4PNiAEKbpzvuEs0Qo9HowAP/mgag5NIRJfXSI4NTsCAIid0BOJNe3 vJeyGuYT4S3yEMm9dIWYsf091DePxBtGcfQIL2tHBelkC7CwJJ5oJIGN6 XrJtgJ/8ite2cblGUxYf4rusmGqPeMR53UOKPC0r3LNb5IXf5jw5yLgMf tLjiYSlcMvhNrMH7mChTaMRdbfY06aDFn+oe+nruRm9ZjLuUJc7dAwhWd FPH/I0mr88yo9krOvAzPmAs7TZOQD+TlMgLqAFZZHvanEY6p8jLQi7tep A==; X-IronPort-AV: E=McAfee;i="6400,9594,10420"; a="289313251" X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="289313251" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2022 18:55:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,194,1654585200"; d="scan'208";a="927599562" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 26 Jul 2022 18:55:34 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oGWGr-0008AM-2e; Wed, 27 Jul 2022 01:55:33 +0000 Date: Wed, 27 Jul 2022 09:55:27 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [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 *)') Message-ID: <202207270935.sCaYDWUW-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: 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/202207270935.sCaYDWUW-lkp@intel.com/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 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 :::::: CC: Alistair Delva -- 0-DAY CI Kernel Test Service https://01.org/lkp