* [linux-next:master 15579/15595] arch/riscv/kernel/syscall_table.c:14:36: warning: excess elements in array initializer
@ 2020-10-21 7:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-21 7:42 UTC (permalink / raw)
To: David Howells; +Cc: kbuild-all, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 9259 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5302568121ba345f5c22528aefd72d775f25221e
commit: 5394c6318b32ffd216e5e17d95f0be2db1df2e79 [15579/15595] Merge remote-tracking branch 'notifications/notifications-pipe-core' into master
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=5394c6318b32ffd216e5e17d95f0be2db1df2e79
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 5394c6318b32ffd216e5e17d95f0be2db1df2e79
# 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 warnings (new ones prefixed by >>):
| ^
include/uapi/asm-generic/unistd.h:846:1: note: in expansion of macro '__SYSCALL'
846 | __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:846:1: note: in expansion of macro '__SYSCALL'
846 | __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: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)
| ^~~~~~~~~
include/uapi/asm-generic/unistd.h:862:26: error: array index in initializer exceeds array bounds
862 | #define __NR_watch_mount 441
| ^~~
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:863:11: note: in expansion of macro '__NR_watch_mount'
863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~~~~~~~~
include/uapi/asm-generic/unistd.h:862:26: note: (near initialization for 'sys_call_table')
862 | #define __NR_watch_mount 441
| ^~~
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:863:11: note: in expansion of macro '__NR_watch_mount'
863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~~~~~~~~
>> 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:863:1: note: in expansion of macro '__SYSCALL'
863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~
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:863:1: note: in expansion of macro '__SYSCALL'
863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
| ^~~~~~~~~
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 +14 arch/riscv/kernel/syscall_table.c
e2c0cdfba7f6992 Palmer Dabbelt 2017-07-10 12
e2c0cdfba7f6992 Palmer Dabbelt 2017-07-10 13 #undef __SYSCALL
e2c0cdfba7f6992 Palmer Dabbelt 2017-07-10 @14 #define __SYSCALL(nr, call) [nr] = (call),
e2c0cdfba7f6992 Palmer Dabbelt 2017-07-10 15
:::::: The code at line 14 was first introduced by commit
:::::: e2c0cdfba7f69925afc92b20cd9835d81e11a4f1 RISC-V: User-facing API
:::::: TO: Palmer Dabbelt <palmer@dabbelt.com>
:::::: CC: Palmer Dabbelt <palmer@dabbelt.com>
---
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: 6614 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-21 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 7:42 [linux-next:master 15579/15595] arch/riscv/kernel/syscall_table.c:14:36: warning: excess elements in array initializer kernel test robot
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).