tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git readfile head: bfae99ad26b863f0381834ec0983b2149ec54ec6 commit: 2260dd18e6112543fcfdd9b11b6e75378c8ff3e1 [2/3] arch: wire up the readfile syscall config: arc-axs101_defconfig (attached as .config) compiler: arc-elf-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 2260dd18e6112543fcfdd9b11b6e75378c8ff3e1 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>, old ones prefixed by <<): | ^ include/uapi/asm-generic/unistd.h:844:1: note: in expansion of macro '__SYSCALL' 844 | __SYSCALL(__NR_fsmount, sys_fsmount) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[432]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[433]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[434]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[435]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[437]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[438]') 13 | #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/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #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/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[439]') 13 | #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:860:23: error: array index in initializer exceeds array bounds 860 | #define __NR_readfile 440 | ^~~ arch/arc/kernel/sys.c:13:30: note: in definition of macro '__SYSCALL' 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^~ include/uapi/asm-generic/unistd.h:861:11: note: in expansion of macro '__NR_readfile' 861 | __SYSCALL(__NR_readfile, sys_readfile) | ^~~~~~~~~~~~~ include/uapi/asm-generic/unistd.h:860:23: note: (near initialization for 'sys_call_table') 860 | #define __NR_readfile 440 | ^~~ arch/arc/kernel/sys.c:13:30: note: in definition of macro '__SYSCALL' 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^~ include/uapi/asm-generic/unistd.h:861:11: note: in expansion of macro '__NR_readfile' 861 | __SYSCALL(__NR_readfile, sys_readfile) | ^~~~~~~~~~~~~ << from arch/arc/kernel/sys.c:3: >> arch/arc/kernel/sys.c:13:36: warning: excess elements in array initializer 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ include/uapi/asm-generic/unistd.h:861:1: note: in expansion of macro '__SYSCALL' 861 | __SYSCALL(__NR_readfile, sys_readfile) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ include/uapi/asm-generic/unistd.h:861:1: note: in expansion of macro '__SYSCALL' 861 | __SYSCALL(__NR_readfile, sys_readfile) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:44:1: note: in expansion of macro '__SYSCALL' 44 | __SYSCALL(__NR_cacheflush, sys_cacheflush) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[244]') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:44:1: note: in expansion of macro '__SYSCALL' 44 | __SYSCALL(__NR_cacheflush, sys_cacheflush) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:45:1: note: in expansion of macro '__SYSCALL' 45 | __SYSCALL(__NR_arc_settls, sys_arc_settls) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[245]') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:45:1: note: in expansion of macro '__SYSCALL' 45 | __SYSCALL(__NR_arc_settls, sys_arc_settls) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:46:1: note: in expansion of macro '__SYSCALL' 46 | __SYSCALL(__NR_arc_gettls, sys_arc_gettls) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[246]') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:46:1: note: in expansion of macro '__SYSCALL' 46 | __SYSCALL(__NR_arc_gettls, sys_arc_gettls) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:47:1: note: in expansion of macro '__SYSCALL' 47 | __SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[248]') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:47:1: note: in expansion of macro '__SYSCALL' 47 | __SYSCALL(__NR_arc_usr_cmpxchg, sys_arc_usr_cmpxchg) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: warning: initialized field overwritten [-Woverride-init] 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:48:1: note: in expansion of macro '__SYSCALL' 48 | __SYSCALL(__NR_sysfs, sys_sysfs) | ^~~~~~~~~ arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[247]') 13 | #define __SYSCALL(nr, call) [nr] = (call), | ^ arch/arc/include/uapi/asm/unistd.h:48:1: note: in expansion of macro '__SYSCALL' 48 | __SYSCALL(__NR_sysfs, sys_sysfs) | ^~~~~~~~~ In file included from include/linux/perf_event.h:25, from include/linux/trace_events.h:10, from include/trace/syscall.h:7, from include/linux/syscalls.h:85, from arch/arc/kernel/sys.c:3: arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=] 126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { | ^~~~~~~~~~~~~~~~~ arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=] 91 | static const char * const arc_pmu_ev_hw_map[] = { | ^~~~~~~~~~~~~~~~~ vim +13 arch/arc/kernel/sys.c 4adeefe161a743 Vineet Gupta 2013-01-18 11 4adeefe161a743 Vineet Gupta 2013-01-18 12 #undef __SYSCALL 4adeefe161a743 Vineet Gupta 2013-01-18 @13 #define __SYSCALL(nr, call) [nr] = (call), 4adeefe161a743 Vineet Gupta 2013-01-18 14 :::::: The code at line 13 was first introduced by commit :::::: 4adeefe161a74369e44cc8e663f240ece0470dc3 ARC: Syscall support (no-legacy-syscall ABI) :::::: TO: Vineet Gupta <vgupta@xxxxxxxxxxxx> :::::: CC: Vineet Gupta <vgupta@xxxxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel