[arnd-asm-generic:syscall-tbl-6.11 92/98] arch/arm64/include/asm/syscalls.h:11:75: error: unknown type name 'compat_size_t'; did you mean 'compat_sp_abt'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git syscall-tbl-6.11
head:   9a99991d90521113a738c2a4761a4147fe4b31ca
commit: d079d82a6231c5cb40ba4b46f9d0634a36051523 [92/98] syscalls: check syscall prototypes
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20240718/202407180852.frUNVOxd-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240718/202407180852.frUNVOxd-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407180852.frUNVOxd-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from include/linux/syscalls.h:84,
                    from arch/arm64/kernel/sys.c:16:
>> arch/arm64/include/asm/syscalls.h:11:75: error: unknown type name 'compat_size_t'; did you mean 'compat_sp_abt'?
      11 | asmlinkage long compat_sys_aarch32_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf);
         |                                                                           ^~~~~~~~~~~~~
         |                                                                           compat_sp_abt
   arch/arm64/include/asm/syscalls.h:12:63: error: unknown type name 'compat_size_t'; did you mean 'compat_sp_abt'?
      12 | asmlinkage long compat_sys_aarch32_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf);
         |                                                               ^~~~~~~~~~~~~
         |                                                               compat_sp_abt
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/kernel/sys.c:52:52: note: in expansion of macro '__SYSCALL'
      52 | #define __SYSCALL_WITH_COMPAT(nr, native, compat)  __SYSCALL(nr, native)
         |                                                    ^~~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:1:1: note: in expansion of macro '__SYSCALL_WITH_COMPAT'
       1 | __SYSCALL_WITH_COMPAT(0, sys_io_setup, compat_sys_io_setup)
         | ^~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[0]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/kernel/sys.c:52:52: note: in expansion of macro '__SYSCALL'
      52 | #define __SYSCALL_WITH_COMPAT(nr, native, compat)  __SYSCALL(nr, native)
         |                                                    ^~~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:1:1: note: in expansion of macro '__SYSCALL_WITH_COMPAT'
       1 | __SYSCALL_WITH_COMPAT(0, sys_io_setup, compat_sys_io_setup)
         | ^~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:2:1: note: in expansion of macro '__SYSCALL'
       2 | __SYSCALL(1, sys_io_destroy)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[1]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:2:1: note: in expansion of macro '__SYSCALL'
       2 | __SYSCALL(1, sys_io_destroy)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/kernel/sys.c:52:52: note: in expansion of macro '__SYSCALL'
      52 | #define __SYSCALL_WITH_COMPAT(nr, native, compat)  __SYSCALL(nr, native)
         |                                                    ^~~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:3:1: note: in expansion of macro '__SYSCALL_WITH_COMPAT'
       3 | __SYSCALL_WITH_COMPAT(2, sys_io_submit, compat_sys_io_submit)
         | ^~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[2]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   arch/arm64/kernel/sys.c:52:52: note: in expansion of macro '__SYSCALL'
      52 | #define __SYSCALL_WITH_COMPAT(nr, native, compat)  __SYSCALL(nr, native)
         |                                                    ^~~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:3:1: note: in expansion of macro '__SYSCALL_WITH_COMPAT'
       3 | __SYSCALL_WITH_COMPAT(2, sys_io_submit, compat_sys_io_submit)
         | ^~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:4:1: note: in expansion of macro '__SYSCALL'
       4 | __SYSCALL(3, sys_io_cancel)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[3]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:4:1: note: in expansion of macro '__SYSCALL'
       4 | __SYSCALL(3, sys_io_cancel)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:5:1: note: in expansion of macro '__SYSCALL'
       5 | __SYSCALL(4, sys_io_getevents)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[4]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:5:1: note: in expansion of macro '__SYSCALL'
       5 | __SYSCALL(4, sys_io_getevents)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:6:1: note: in expansion of macro '__SYSCALL'
       6 | __SYSCALL(5, sys_setxattr)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[5]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:6:1: note: in expansion of macro '__SYSCALL'
       6 | __SYSCALL(5, sys_setxattr)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: warning: initialized field overwritten [-Woverride-init]
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
   ./arch/arm64/include/generated/asm/syscall_table_64.h:7:1: note: in expansion of macro '__SYSCALL'
       7 | __SYSCALL(6, sys_lsetxattr)
         | ^~~~~~~~~
   arch/arm64/kernel/sys.c:59:40: note: (near initialization for 'sys_call_table[6]')
      59 | #define __SYSCALL(nr, sym)      [nr] = __arm64_##sym,
         |                                        ^~~~~~~~
--
   In file included from include/linux/syscalls.h:84,
                    from arch/arm64/kernel/syscall.c:9:
>> arch/arm64/include/asm/syscalls.h:11:75: error: unknown type name 'compat_size_t'; did you mean 'compat_sp_abt'?
      11 | asmlinkage long compat_sys_aarch32_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf);
         |                                                                           ^~~~~~~~~~~~~
         |                                                                           compat_sp_abt
   arch/arm64/include/asm/syscalls.h:12:63: error: unknown type name 'compat_size_t'; did you mean 'compat_sp_abt'?
      12 | asmlinkage long compat_sys_aarch32_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf);
         |                                                               ^~~~~~~~~~~~~
         |                                                               compat_sp_abt


vim +11 arch/arm64/include/asm/syscalls.h

40504bb779d375 Arnd Bergmann 2024-06-04  10  
40504bb779d375 Arnd Bergmann 2024-06-04 @11  asmlinkage long compat_sys_aarch32_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf);
40504bb779d375 Arnd Bergmann 2024-06-04  12  asmlinkage long compat_sys_aarch32_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf);
40504bb779d375 Arnd Bergmann 2024-06-04  13  asmlinkage long compat_sys_aarch32_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off_4k);
40504bb779d375 Arnd Bergmann 2024-06-04  14  

:::::: The code at line 11 was first introduced by commit
:::::: 40504bb779d37533d0c7f68d612b17c5e5f9a4a5 arm64: add asm/syscalls.h

:::::: TO: Arnd Bergmann <arnd@xxxxxxxx>
:::::: CC: Arnd Bergmann <arnd@xxxxxxxx>

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




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux