All of lore.kernel.org
 help / color / mirror / Atom feed
* [mszeredi-vfs:statmount-v4 6/6] arch/arm64/kernel/sys32.c:130:40: warning: excess elements in array initializer
@ 2023-10-26 13:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-26 13:38 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: oe-kbuild-all, linux-unionfs

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git statmount-v4
head:   6b10e0e8daeb6fcbc706a7e1e30c7e48243ffb88
commit: 6b10e0e8daeb6fcbc706a7e1e30c7e48243ffb88 [6/6] wire up syscalls for statmount/listmount
config: arm64-randconfig-004-20231026 (https://download.01.org/0day-ci/archive/20231026/202310262126.LBc6mDHi-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310262126.LBc6mDHi-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310262126.LBc6mDHi-lkp@intel.com/

All warnings (new ones prefixed by >>):

         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:901:1: note: in expansion of macro '__SYSCALL'
     901 | __SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[445]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:901:1: note: in expansion of macro '__SYSCALL'
     901 | __SYSCALL(__NR_landlock_add_rule, sys_landlock_add_rule)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:903:1: note: in expansion of macro '__SYSCALL'
     903 | __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[446]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:903:1: note: in expansion of macro '__SYSCALL'
     903 | __SYSCALL(__NR_landlock_restrict_self, sys_landlock_restrict_self)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:905:1: note: in expansion of macro '__SYSCALL'
     905 | __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[448]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:905:1: note: in expansion of macro '__SYSCALL'
     905 | __SYSCALL(__NR_process_mrelease, sys_process_mrelease)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:907:1: note: in expansion of macro '__SYSCALL'
     907 | __SYSCALL(__NR_futex_waitv, sys_futex_waitv)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[449]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:907:1: note: in expansion of macro '__SYSCALL'
     907 | __SYSCALL(__NR_futex_waitv, sys_futex_waitv)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:909:1: note: in expansion of macro '__SYSCALL'
     909 | __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[450]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:909:1: note: in expansion of macro '__SYSCALL'
     909 | __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:911:1: note: in expansion of macro '__SYSCALL'
     911 | __SYSCALL(__NR_cachestat, sys_cachestat)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[451]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:911:1: note: in expansion of macro '__SYSCALL'
     911 | __SYSCALL(__NR_cachestat, sys_cachestat)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: warning: initialized field overwritten [-Woverride-init]
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:913:1: note: in expansion of macro '__SYSCALL'
     913 | __SYSCALL(__NR_fchmodat2, sys_fchmodat2)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table[452]')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:913:1: note: in expansion of macro '__SYSCALL'
     913 | __SYSCALL(__NR_fchmodat2, sys_fchmodat2)
         | ^~~~~~~~~
   arch/arm64/include/asm/unistd32.h:914:24: error: array index in initializer exceeds array bounds
     914 | #define __NR_statmount 454
         |                        ^~~
   arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                  ^~
   arch/arm64/include/asm/unistd32.h:915:11: note: in expansion of macro '__NR_statmount'
     915 | __SYSCALL(__NR_statmount, sys_statmount)
         |           ^~~~~~~~~~~~~~
   arch/arm64/include/asm/unistd32.h:914:24: note: (near initialization for 'compat_sys_call_table')
     914 | #define __NR_statmount 454
         |                        ^~~
   arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                  ^~
   arch/arm64/include/asm/unistd32.h:915:11: note: in expansion of macro '__NR_statmount'
     915 | __SYSCALL(__NR_statmount, sys_statmount)
         |           ^~~~~~~~~~~~~~
>> arch/arm64/kernel/sys32.c:130:40: warning: excess elements in array initializer
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:915:1: note: in expansion of macro '__SYSCALL'
     915 | __SYSCALL(__NR_statmount, sys_statmount)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:915:1: note: in expansion of macro '__SYSCALL'
     915 | __SYSCALL(__NR_statmount, sys_statmount)
         | ^~~~~~~~~
   arch/arm64/include/asm/unistd32.h:916:24: error: array index in initializer exceeds array bounds
     916 | #define __NR_listmount 455
         |                        ^~~
   arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                  ^~
   arch/arm64/include/asm/unistd32.h:917:11: note: in expansion of macro '__NR_listmount'
     917 | __SYSCALL(__NR_listmount, sys_listmount)
         |           ^~~~~~~~~~~~~~
   arch/arm64/include/asm/unistd32.h:916:24: note: (near initialization for 'compat_sys_call_table')
     916 | #define __NR_listmount 455
         |                        ^~~
   arch/arm64/kernel/sys32.c:130:34: note: in definition of macro '__SYSCALL'
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                  ^~
   arch/arm64/include/asm/unistd32.h:917:11: note: in expansion of macro '__NR_listmount'
     917 | __SYSCALL(__NR_listmount, sys_listmount)
         |           ^~~~~~~~~~~~~~
>> arch/arm64/kernel/sys32.c:130:40: warning: excess elements in array initializer
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:917:1: note: in expansion of macro '__SYSCALL'
     917 | __SYSCALL(__NR_listmount, sys_listmount)
         | ^~~~~~~~~
   arch/arm64/kernel/sys32.c:130:40: note: (near initialization for 'compat_sys_call_table')
     130 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/include/asm/unistd32.h:917:1: note: in expansion of macro '__SYSCALL'
     917 | __SYSCALL(__NR_listmount, sys_listmount)
         | ^~~~~~~~~


vim +130 arch/arm64/kernel/sys32.c

4378a7d4be30ec Mark Rutland    2018-07-11  128  
0156411b182877 Catalin Marinas 2015-01-06  129  #undef __SYSCALL
1e29ab3186e33c Sami Tolvanen   2019-05-24 @130  #define __SYSCALL(nr, sym)	[nr] = __arm64_##sym,
0156411b182877 Catalin Marinas 2015-01-06  131  

:::::: The code at line 130 was first introduced by commit
:::::: 1e29ab3186e33c77dbb2d7566172a205b59fa390 arm64: use the correct function type for __arm64_sys_ni_syscall

:::::: TO: Sami Tolvanen <samitolvanen@google.com>
:::::: CC: Will Deacon <will.deacon@arm.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-10-26 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-26 13:38 [mszeredi-vfs:statmount-v4 6/6] arch/arm64/kernel/sys32.c:130:40: warning: excess elements in array initializer kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.