* [linux-next:master 14048/14054] include/uapi/asm-generic/unistd.h:867:27: error: array index in initializer exceeds array bounds
@ 2020-12-21 17:36 kernel test robot
2020-12-21 17:46 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-12-21 17:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 10699 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4c6ed015c2a57c3b385265895a69a87f87da8e28
commit: d098835811e05da6ef66251d2c7db0378df23707 [14048/14054] arch-mm-wire-up-memfd_secret-system-call-were-relevant-fix
config: riscv-nommu_k210_defconfig (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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d098835811e05da6ef66251d2c7db0378df23707
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout d098835811e05da6ef66251d2c7db0378df23707
# 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@intel.com>
All error/warnings (new ones prefixed by >>):
| ^
include/uapi/asm-generic/unistd.h:849:1: note: in expansion of macro '__SYSCALL'
849 | __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:849:1: note: in expansion of macro '__SYSCALL'
849 | __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:852:1: note: in expansion of macro '__SYSCALL'
852 | __SYSCALL(__NR_close_range, sys_close_range)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[436]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:852:1: note: in expansion of macro '__SYSCALL'
852 | __SYSCALL(__NR_close_range, sys_close_range)
| ^~~~~~~~~
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)
| ^~~~~~~~~
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:861:1: note: in expansion of macro '__SYSCALL'
861 | __SYSCALL(__NR_process_madvise, sys_process_madvise)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[440]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:861:1: note: in expansion of macro '__SYSCALL'
861 | __SYSCALL(__NR_process_madvise, sys_process_madvise)
| ^~~~~~~~~
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:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:863:1: note: in expansion of macro '__SC_COMP'
863 | __SC_COMP(__NR_epoll_pwait2, sys_epoll_pwait2, compat_sys_epoll_pwait2)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[441]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:29:37: note: in expansion of macro '__SYSCALL'
29 | #define __SC_COMP(_nr, _sys, _comp) __SYSCALL(_nr, _sys)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:863:1: note: in expansion of macro '__SC_COMP'
863 | __SC_COMP(__NR_epoll_pwait2, sys_epoll_pwait2, compat_sys_epoll_pwait2)
| ^~~~~~~~~
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:865:1: note: in expansion of macro '__SYSCALL'
865 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table[442]')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:865:1: note: in expansion of macro '__SYSCALL'
865 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~
>> include/uapi/asm-generic/unistd.h:867:27: error: array index in initializer exceeds array bounds
867 | #define __NR_memfd_secret 443
| ^~~
arch/riscv/kernel/syscall_table.c:14:30: note: in definition of macro '__SYSCALL'
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^~
include/uapi/asm-generic/unistd.h:868:11: note: in expansion of macro '__NR_memfd_secret'
868 | __SYSCALL(__NR_memfd_secret, sys_memfd_secret)
| ^~~~~~~~~~~~~~~~~
include/uapi/asm-generic/unistd.h:867:27: note: (near initialization for 'sys_call_table')
867 | #define __NR_memfd_secret 443
| ^~~
arch/riscv/kernel/syscall_table.c:14:30: note: in definition of macro '__SYSCALL'
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^~
include/uapi/asm-generic/unistd.h:868:11: note: in expansion of macro '__NR_memfd_secret'
868 | __SYSCALL(__NR_memfd_secret, sys_memfd_secret)
| ^~~~~~~~~~~~~~~~~
>> arch/riscv/kernel/syscall_table.c:14:36: warning: excess elements in array initializer
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:868:1: note: in expansion of macro '__SYSCALL'
868 | __SYSCALL(__NR_memfd_secret, sys_memfd_secret)
| ^~~~~~~~~
arch/riscv/kernel/syscall_table.c:14:36: note: (near initialization for 'sys_call_table')
14 | #define __SYSCALL(nr, call) [nr] = (call),
| ^
include/uapi/asm-generic/unistd.h:868:1: note: in expansion of macro '__SYSCALL'
868 | __SYSCALL(__NR_memfd_secret, sys_memfd_secret)
| ^~~~~~~~~
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 +867 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 #define __NR_process_madvise 440
861 __SYSCALL(__NR_process_madvise, sys_process_madvise)
862 #define __NR_epoll_pwait2 441
863 __SC_COMP(__NR_epoll_pwait2, sys_epoll_pwait2, compat_sys_epoll_pwait2)
864 #define __NR_watch_mount 442
865 __SYSCALL(__NR_watch_mount, sys_watch_mount)
866 #ifdef __ARCH_WANT_MEMFD_SECRET
> 867 #define __NR_memfd_secret 443
868 __SYSCALL(__NR_memfd_secret, sys_memfd_secret)
869 #endif
870
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6568 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-21 17:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21 17:36 [linux-next:master 14048/14054] include/uapi/asm-generic/unistd.h:867:27: error: array index in initializer exceeds array bounds kernel test robot
2020-12-21 17:46 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).