[kbuild:testing5 5/40] arch/x86/um/sys_call_table_64.c:55:30: error: 'sys_ni_syscall' undeclared here (not in a function); did you mean

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git testing5
head:   4096884562ee16421152cf2a7e2f434f31d52ccd
commit: 70792a782b698370979efc8b229a25c36a81bb01 [5/40] x86: syscall: comment out syscalls with no entry symbol
config: um-kunit_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=70792a782b698370979efc8b229a25c36a81bb01
        git remote add kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
        git fetch --no-tags kbuild testing5
        git checkout 70792a782b698370979efc8b229a25c36a81bb01
        # save the attached .config to linux build tree
        make W=1 ARCH=um 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
   In file included from arch/x86/um/sys_call_table_64.c:43:
>> ./arch/x86/include/generated/asm/syscalls_64.h:1:11: error: expected declaration specifiers or '...' before numeric constant
       1 | __SYSCALL(0, sys_read)
         |           ^
>> ./arch/x86/include/generated/asm/syscalls_64.h:1:14: error: unknown type name 'sys_read'
       1 | __SYSCALL(0, sys_read)
         |              ^~~~~~~~
>> arch/x86/um/sys_call_table_64.c:55:30: error: 'sys_ni_syscall' undeclared here (not in a function); did you mean 'si_syscall'?
      55 |  [0 ... __NR_syscall_max] = &sys_ni_syscall,
         |                              ^~~~~~~~~~~~~~
         |                              si_syscall
   In file included from arch/x86/um/sys_call_table_64.c:56:
>> ./arch/x86/include/generated/asm/syscalls_64.h:1:1: error: implicit declaration of function '__SYSCALL'; did you mean 'PT_SYSCALL_NR'? [-Werror=implicit-function-declaration]
       1 | __SYSCALL(0, sys_read)
         | ^~~~~~~~~
         | PT_SYSCALL_NR
>> ./arch/x86/include/generated/asm/syscalls_64.h:1:14: error: 'sys_read' undeclared here (not in a function)
       1 | __SYSCALL(0, sys_read)
         |              ^~~~~~~~
>> ./arch/x86/include/generated/asm/syscalls_64.h:2:1: error: expected '}' before '__SYSCALL'
       2 | __SYSCALL(1, sys_write)
         | ^~~~~~~~~
   arch/x86/um/sys_call_table_64.c:50:63: note: to match this '{'
      50 | const sys_call_ptr_t sys_call_table[] ____cacheline_aligned = {
         |                                                               ^
   cc1: some warnings being treated as errors


vim +55 arch/x86/um/sys_call_table_64.c

80f9507886076de0 arch/um/sys-x86_64/syscall_table.c Paolo 'Blaisorblade' Giarrusso 2005-05-01  49  
b485342bd79af363 arch/x86/um/sys_call_table_64.c    Daniel Borkmann                2015-01-03  50  const sys_call_ptr_t sys_call_table[] ____cacheline_aligned = {
95906b24fbe4d22e arch/um/sys-x86_64/syscall_table.c Jeff Dike                      2008-02-04  51  	/*
45db1c6176c8171d arch/x86/um/sys_call_table_64.c    H. Peter Anvin                 2011-12-05  52  	 * Smells like a compiler bug -- it doesn't work
45db1c6176c8171d arch/x86/um/sys_call_table_64.c    H. Peter Anvin                 2011-12-05  53  	 * when the & below is removed.
95906b24fbe4d22e arch/um/sys-x86_64/syscall_table.c Jeff Dike                      2008-02-04  54  	 */
45db1c6176c8171d arch/x86/um/sys_call_table_64.c    H. Peter Anvin                 2011-12-05 @55  	[0 ... __NR_syscall_max] = &sys_ni_syscall,
45db1c6176c8171d arch/x86/um/sys_call_table_64.c    H. Peter Anvin                 2011-12-05  56  #include <asm/syscalls_64.h>
80f9507886076de0 arch/um/sys-x86_64/syscall_table.c Paolo 'Blaisorblade' Giarrusso 2005-05-01  57  };
f87ea91d988637b3 arch/um/sys-x86_64/syscall_table.c Jeff Dike                      2008-02-04  58  

:::::: The code at line 55 was first introduced by commit
:::::: 45db1c6176c8171d9ae6fa6d82e07d115a5950ca x86, um: Use the same style generated syscall tables as native

:::::: TO: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>
:::::: CC: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux