s390: fix build error for sys_call_table_emu
Subsystems (3)
PATCH v2 1/1 s390: fix build error for sys_call_table_emu
Build error on s390:
arch/s390/kernel/entry.o: in function `sys_call_table_emu': >> (.rodata+0x1288): undefined reference to `__s390_'
In commit ("All arch: remove system call sys_sysctl")
148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_sysctl compat_sys_sysctl +149 common _sysctl sys_ni_syscall 150 common mlock sys_mlock sys_mlock
After the patch is integrated, there is a format error in the generated arch/s390/include/generated/asm/syscall_table.h:
SYSCALL(sys_fdatasync, sys_fdatasync) SYSCALL(sys_ni_syscall,) /* cause build error */ SYSCALL(sys_mlock,sys_mlock)
According to the guidance of Heiko Carstens, use "-" to fill the empty system call
Similarly, modify tools/perf/arch/s390/entry/syscalls/syscall.tbl.
changes in v2:
use "-" to fill the empty system call
v1: https://lore.kernel.org/lkml/20200618110320.104013-1-nixiaoming(a)huawei.com/
--- arch/s390/kernel/syscalls/syscall.tbl | 2 +- tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/s390/kernel/syscalls/syscall.tbl +1 -1
@@ -138,7 +138,7 @@ 146 common writev sys_writev compat_sys_writev 147 common getsid sys_getsid sys_getsid 148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_ni_syscall +149 common _sysctl - - 150 common mlock sys_mlock sys_mlock 151 common munlock sys_munlock sys_munlock 152 common mlockall sys_mlockall sys_mlockall
tools/perf/arch/s390/entry/syscalls/syscall.tbl +1 -1
@@ -138,7 +138,7 @@ 146 common writev sys_writev compat_sys_writev 147 common getsid sys_getsid sys_getsid 148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_ni_syscall +149 common _sysctl - - 150 common mlock sys_mlock compat_sys_mlock 151 common munlock sys_munlock compat_sys_munlock 152 common mlockall sys_mlockall sys_mlockall
Signature · 1 line
2.27.0
Quoted 24 lines · Xiaoming Ni
Build error on s390:
arch/s390/kernel/entry.o: in function `sys_call_table_emu': >> (.rodata+0x1288): undefined reference to `__s390_'In commit ("All arch: remove system call
sys_sysctl")148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_sysctl compat_sys_sysctl +149 common _sysctl sys_ni_syscall 150 common mlock sys_mlock sys_mlockAfter the patch is integrated, there is a format error in the generated
arch/s390/include/generated/asm/syscall_table.h:
SYSCALL(sys_fdatasync, sys_fdatasync)SYSCALL(sys_ni_syscall,)/* cause build error */SYSCALL(sys_mlock,sys_mlock)According to the guidance of Heiko Carstens, use "-" to fill the empty system call
Similarly, modifytools/perf/arch/s390/entry/syscalls/syscall.tbl.Fixes ("All arch: remove system call sys_sysctl")Reported-by kernel test robot <[email protected]>Signed-off-by Xiaoming Ni <[email protected]>
Quoted 8 lines
changes in v2:
use "-" to fill the empty system callv1: https://lore.kernel.org/lkml/[email protected]/
--- arch/s390/kernel/syscalls/syscall.tbl | 2 +- tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Arnaldo Carvalho de Melo
maintainerEm Fri, Jun 19, 2020 at 04:17:17PM +0200, Heiko Carstens escreveu:
Quoted 28 lines · Xiaoming Ni
Quoted 27 lines
Build error on s390:
arch/s390/kernel/entry.o: in function `sys_call_table_emu': >> (.rodata+0x1288): undefined reference to `__s390_'In commit ("All arch: remove system call
sys_sysctl")148 common fdatasync sys_fdatasync sys_fdatasync -149 common _sysctl sys_sysctl compat_sys_sysctl +149 common _sysctl sys_ni_syscall 150 common mlock sys_mlock sys_mlockAfter the patch is integrated, there is a format error in the generated
arch/s390/include/generated/asm/syscall_table.h:
SYSCALL(sys_fdatasync, sys_fdatasync)SYSCALL(sys_ni_syscall,)/* cause build error */SYSCALL(sys_mlock,sys_mlock)According to the guidance of Heiko Carstens, use "-" to fill the empty system call
Similarly, modifytools/perf/arch/s390/entry/syscalls/syscall.tbl.Fixes ("All arch: remove system call sys_sysctl")Reported-by kernel test robot <[email protected]>Signed-off-by Xiaoming Ni <[email protected]>changes in v2:
use "-" to fill the empty system call
Quoted 7 lines
Quoted 5 lines
v1: https://lore.kernel.org/lkml/[email protected]/
--- arch/s390/kernel/syscalls/syscall.tbl | 2 +- tools/perf/arch/s390/entry/syscalls/syscall.tbl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)Acked-by Heiko Carstens <[email protected]>
I get just copies of that file when it gets out of sync, so I suppose the patch should be just for arch/s390/kernel/syscalls/syscall.tbl and processed by the s/390 maintainer?
- Arnaldo