Skip to content

Commit 343416f

Browse files
committed
syscalls: fix syscall macros for newfstat/newfstatat
The __NR_newfstat and __NR_newfstatat macros accidentally got renamed in the conversion to the syscall.tbl format, dropping the 'new' portion of the name. In an unrelated change, the two syscalls are no longer architecture specific but are once more defined on all 64-bit architectures, so the 'newstat' ABI keyword can be dropped from the table as a simplification. Fixes: Fixes: 4fe53bf ("syscalls: add generic scripts/syscall.tbl") Closes: https://lore.kernel.org/lkml/838053e0-b186-4e9f-9668-9a3384a71f23@app.fastmail.com/T/#t Reported-by: Florian Weimer <fweimer@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 54233a4 commit 343416f

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

arch/arm64/kernel/Makefile.syscalls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
syscall_abis_32 +=
4-
syscall_abis_64 += renameat newstat rlimit memfd_secret
4+
syscall_abis_64 += renameat rlimit memfd_secret
55

66
syscalltbl = arch/arm64/tools/syscall_%.tbl
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
syscall_abis_64 += newstat
3+
# No special ABIs on loongarch so far
4+
syscall_abis_64 +=

arch/riscv/kernel/Makefile.syscalls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
syscall_abis_32 += riscv memfd_secret
4-
syscall_abis_64 += riscv newstat rlimit memfd_secret
4+
syscall_abis_64 += riscv rlimit memfd_secret

scripts/syscall.tbl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
77 common tee sys_tee
9999
78 common readlinkat sys_readlinkat
100100
79 stat64 fstatat64 sys_fstatat64
101-
79 newstat fstatat sys_newfstatat
101+
79 64 newfstatat sys_newfstatat
102102
80 stat64 fstat64 sys_fstat64
103-
80 newstat fstat sys_newfstat
103+
80 64 newfstat sys_newfstat
104104
81 common sync sys_sync
105105
82 common fsync sys_fsync
106106
83 common fdatasync sys_fdatasync

0 commit comments

Comments
 (0)