From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:x86/syscall 4/5] kernel/sys_ni.c:354:1: error: conflicting types for '__x64_sys_gettimeofday'
Date: Thu, 29 Oct 2026 18:39:17 +0100 [thread overview]
Message-ID: <202610291828.0Bgo0RWM-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/syscall
head: 57a2da426dba48424406ee52c0c931c6d024138a
commit: 91b5c0df2a770d3c281a82da51feb9b488bd7ace [4/5] x86_64/entry: Mark all syscalls __noendbr
config: x86_64-randconfig-2200-20261029 (https://download.01.org/0day-ci/archive/20261029/202610291828.0Bgo0RWM-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261029/202610291828.0Bgo0RWM-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610291828.0Bgo0RWM-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sys_ni.c:354:1: error: conflicting types for '__x64_sys_gettimeofday'
354 | COND_SYSCALL(gettimeofday);
| ^
arch/x86/include/asm/syscall_wrapper.h:253:2: note: expanded from macro 'COND_SYSCALL'
253 | __X64_COND_SYSCALL(name) \
| ^
arch/x86/include/asm/syscall_wrapper.h:116:2: note: expanded from macro '__X64_COND_SYSCALL'
116 | __COND_SYSCALL(x64, sys_##name)
| ^
arch/x86/include/asm/syscall_wrapper.h:101:14: note: expanded from macro '__COND_SYSCALL'
101 | __weak long __##abi##_##name(const struct pt_regs *__unused); \
| ^
<scratch space>:93:1: note: expanded from here
93 | __x64_sys_gettimeofday
| ^
arch/x86/include/asm/syscall_wrapper.h:262:16: note: previous declaration is here
262 | long __noendbr __x64_sys_gettimeofday(const struct pt_regs *regs);
| ^
>> kernel/sys_ni.c:354:1: error: conflicting types for '__x64_sys_gettimeofday'
354 | COND_SYSCALL(gettimeofday);
| ^
arch/x86/include/asm/syscall_wrapper.h:253:2: note: expanded from macro 'COND_SYSCALL'
253 | __X64_COND_SYSCALL(name) \
| ^
arch/x86/include/asm/syscall_wrapper.h:116:2: note: expanded from macro '__X64_COND_SYSCALL'
116 | __COND_SYSCALL(x64, sys_##name)
| ^
arch/x86/include/asm/syscall_wrapper.h:102:14: note: expanded from macro '__COND_SYSCALL'
102 | __weak long __##abi##_##name(const struct pt_regs *__unused) \
| ^
<scratch space>:96:1: note: expanded from here
96 | __x64_sys_gettimeofday
| ^
arch/x86/include/asm/syscall_wrapper.h:262:16: note: previous declaration is here
262 | long __noendbr __x64_sys_gettimeofday(const struct pt_regs *regs);
| ^
>> kernel/sys_ni.c:356:1: error: conflicting types for '__x64_sys_time'
356 | COND_SYSCALL(time);
| ^
arch/x86/include/asm/syscall_wrapper.h:253:2: note: expanded from macro 'COND_SYSCALL'
253 | __X64_COND_SYSCALL(name) \
| ^
arch/x86/include/asm/syscall_wrapper.h:116:2: note: expanded from macro '__X64_COND_SYSCALL'
116 | __COND_SYSCALL(x64, sys_##name)
| ^
arch/x86/include/asm/syscall_wrapper.h:101:14: note: expanded from macro '__COND_SYSCALL'
101 | __weak long __##abi##_##name(const struct pt_regs *__unused); \
| ^
<scratch space>:114:1: note: expanded from here
114 | __x64_sys_time
| ^
arch/x86/include/asm/syscall_wrapper.h:263:16: note: previous declaration is here
263 | long __noendbr __x64_sys_time(const struct pt_regs *regs);
| ^
>> kernel/sys_ni.c:356:1: error: conflicting types for '__x64_sys_time'
356 | COND_SYSCALL(time);
| ^
arch/x86/include/asm/syscall_wrapper.h:253:2: note: expanded from macro 'COND_SYSCALL'
253 | __X64_COND_SYSCALL(name) \
| ^
arch/x86/include/asm/syscall_wrapper.h:116:2: note: expanded from macro '__X64_COND_SYSCALL'
116 | __COND_SYSCALL(x64, sys_##name)
| ^
arch/x86/include/asm/syscall_wrapper.h:102:14: note: expanded from macro '__COND_SYSCALL'
102 | __weak long __##abi##_##name(const struct pt_regs *__unused) \
| ^
<scratch space>:117:1: note: expanded from here
117 | __x64_sys_time
| ^
arch/x86/include/asm/syscall_wrapper.h:263:16: note: previous declaration is here
263 | long __noendbr __x64_sys_time(const struct pt_regs *regs);
| ^
4 errors generated.
vim +/__x64_sys_gettimeofday +354 kernel/sys_ni.c
70dd4b3160798b Dominik Brodowski 2018-03-06 330
942437c97fd9ff Arnd Bergmann 2019-07-15 331 /* optional: time32 */
942437c97fd9ff Arnd Bergmann 2019-07-15 332 COND_SYSCALL(time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 333 COND_SYSCALL(stime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 334 COND_SYSCALL(utime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 335 COND_SYSCALL(adjtimex_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 336 COND_SYSCALL(sched_rr_get_interval_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 337 COND_SYSCALL(nanosleep_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 338 COND_SYSCALL(rt_sigtimedwait_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 339 COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 340 COND_SYSCALL(timer_settime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 341 COND_SYSCALL(timer_gettime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 342 COND_SYSCALL(clock_settime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 343 COND_SYSCALL(clock_gettime32);
942437c97fd9ff Arnd Bergmann 2019-07-15 344 COND_SYSCALL(clock_getres_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 345 COND_SYSCALL(clock_nanosleep_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 346 COND_SYSCALL(utimes_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 347 COND_SYSCALL(futimesat_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 348 COND_SYSCALL(pselect6_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 349 COND_SYSCALL_COMPAT(pselect6_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 350 COND_SYSCALL(ppoll_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 351 COND_SYSCALL_COMPAT(ppoll_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 352 COND_SYSCALL(utimensat_time32);
942437c97fd9ff Arnd Bergmann 2019-07-15 353 COND_SYSCALL(clock_adjtime32);
dce21fb3d57016 Thomas Weißschuh 2026-07-02 @354 COND_SYSCALL(gettimeofday);
dce21fb3d57016 Thomas Weißschuh 2026-07-02 355 COND_SYSCALL_COMPAT(gettimeofday);
dce21fb3d57016 Thomas Weißschuh 2026-07-02 @356 COND_SYSCALL(time);
dce21fb3d57016 Thomas Weißschuh 2026-07-02 357 COND_SYSCALL(stime);
70dd4b3160798b Dominik Brodowski 2018-03-06 358
:::::: The code at line 354 was first introduced by commit
:::::: dce21fb3d570169388e2e9d8a60e8d42c1c82a51 time: Respect COMPAT_32BIT_TIME for old time type functions
:::::: TO: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-29 17:40 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 \
--in-reply-to=202610291828.0Bgo0RWM-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.