tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v0
head: 1be1031a8ed57dcefb64c7a2d333b9c0d66e575a
commit: 328d5719045171dd3e1f608281079d6918093d1d [4/6] arch, mm: wire up secretmemfd
system call were relevant
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
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
git checkout 328d5719045171dd3e1f608281079d6918093d1d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
| ^
include/uapi/asm-generic/unistd.h:840:1: note: in expansion of macro
'__SYSCALL'
840 | __SYSCALL(__NR_fsopen, sys_fsopen)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:842:1: note: in expansion of macro
'__SYSCALL'
842 | __SYSCALL(__NR_fsconfig, sys_fsconfig)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[431]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:842:1: note: in expansion of macro
'__SYSCALL'
842 | __SYSCALL(__NR_fsconfig, sys_fsconfig)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:844:1: note: in expansion of macro
'__SYSCALL'
844 | __SYSCALL(__NR_fsmount, sys_fsmount)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[432]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:844:1: note: in expansion of macro
'__SYSCALL'
844 | __SYSCALL(__NR_fsmount, sys_fsmount)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:846:1: note: in expansion of macro
'__SYSCALL'
846 | __SYSCALL(__NR_fspick, sys_fspick)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[433]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:846:1: note: in expansion of macro
'__SYSCALL'
846 | __SYSCALL(__NR_fspick, sys_fspick)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:848:1: note: in expansion of macro
'__SYSCALL'
848 | __SYSCALL(__NR_pidfd_open, sys_pidfd_open)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[434]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:848:1: note: in expansion of macro
'__SYSCALL'
848 | __SYSCALL(__NR_pidfd_open, sys_pidfd_open)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:851:1: note: in expansion of macro
'__SYSCALL'
851 | __SYSCALL(__NR_clone3, sys_clone3)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[435]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:851:1: note: in expansion of macro
'__SYSCALL'
851 | __SYSCALL(__NR_clone3, sys_clone3)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:855:1: note: in expansion of macro
'__SYSCALL'
855 | __SYSCALL(__NR_openat2, sys_openat2)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[437]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:855:1: note: in expansion of macro
'__SYSCALL'
855 | __SYSCALL(__NR_openat2, sys_openat2)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:857:1: note: in expansion of macro
'__SYSCALL'
857 | __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[438]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:857:1: note: in expansion of macro
'__SYSCALL'
857 | __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:859:1: note: in expansion of macro
'__SYSCALL'
859 | __SYSCALL(__NR_faccessat2, sys_faccessat2)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[439]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:859:1: note: in expansion of macro
'__SYSCALL'
859 | __SYSCALL(__NR_faccessat2, sys_faccessat2)
| ^~~~~~~~~
> include/uapi/asm-generic/unistd.h:863:29: error:
'sys_secretmemfd' undeclared here (not in a function)
863 |
__SYSCALL(__NR_secretmemfd, sys_secretmemfd)
| ^~~~~~~~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:37: note: in definition of macro
'__SYSCALL'
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^~~~
arch/riscv/kernel/syscall_table.c:14:36: warning: initialized field overwritten
[-Woverride-init]
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
arch/riscv/include/uapi/asm/unistd.h:43:1: note: in expansion of macro
'__SYSCALL'
43 | __SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for
'sys_call_table[259]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
arch/riscv/include/uapi/asm/unistd.h:43:1: note: in expansion of macro
'__SYSCALL'
43 | __SYSCALL(__NR_riscv_flush_icache, sys_riscv_flush_icache)
| ^~~~~~~~~
vim +/sys_secretmemfd +863 include/uapi/asm-generic/unistd.h
853
854 #define __NR_openat2 437
855 __SYSCALL(__NR_openat2, sys_openat2)
856 #define __NR_pidfd_getfd 438
857 __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd)
858 #define __NR_faccessat2 439
859 __SYSCALL(__NR_faccessat2, sys_faccessat2)
860
861 #ifdef __ARCH_WANT_SECRETMEMFD
862 #define __NR_secretmemfd 440
863 __SYSCALL(__NR_secretmemfd, sys_secretmemfd)
864 #endif
865
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org