linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 15579/15595] arch/arc/kernel/sys.c:13:36: warning: excess elements in array initializer
@ 2020-10-21  7:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-21  7:05 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 12530 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: arc-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
        # 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=arc 

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/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:846:1: note: in expansion of macro '__SYSCALL'
     846 | __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:849:1: note: in expansion of macro '__SYSCALL'
     849 | __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:849:1: note: in expansion of macro '__SYSCALL'
     849 | __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:852:1: note: in expansion of macro '__SYSCALL'
     852 | __SYSCALL(__NR_close_range, sys_close_range)
         | ^~~~~~~~~
   arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[436]')
      13 | #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/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)
         | ^~~~~~~~~
   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:861:1: note: in expansion of macro '__SYSCALL'
     861 | __SYSCALL(__NR_process_madvise, sys_process_madvise)
         | ^~~~~~~~~
   arch/arc/kernel/sys.c:13:36: note: (near initialization for 'sys_call_table[440]')
      13 | #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/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: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/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:863:11: note: in expansion of macro '__NR_watch_mount'
     863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
         |           ^~~~~~~~~~~~~~~~
>> 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:863:1: note: in expansion of macro '__SYSCALL'
     863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
         | ^~~~~~~~~
   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:863:1: note: in expansion of macro '__SYSCALL'
     863 | __SYSCALL(__NR_watch_mount, sys_watch_mount)
         | ^~~~~~~~~
   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:84,
                    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

4adeefe161a7436 Vineet Gupta 2013-01-18  11  
4adeefe161a7436 Vineet Gupta 2013-01-18  12  #undef __SYSCALL
4adeefe161a7436 Vineet Gupta 2013-01-18 @13  #define __SYSCALL(nr, call) [nr] = (call),
4adeefe161a7436 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@synopsys.com>
:::::: CC: Vineet Gupta <vgupta@synopsys.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: 9379 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-21  7:06 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:05 [linux-next:master 15579/15595] arch/arc/kernel/sys.c:13: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).