From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
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 *)')
Date: Wed, 27 Jul 2022 09:55:27 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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
reply other threads:[~2022-07-27 1:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox