]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
syscalls: fix syscall macros for newfstat/newfstatat
authorArnd Bergmann <arnd@arndb.de>
Thu, 1 Aug 2024 12:27:23 +0000 (14:27 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 2 Aug 2024 13:20:47 +0000 (15:20 +0200)
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: 4fe53bf2ba0a ("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>
arch/arm64/kernel/Makefile.syscalls
arch/loongarch/kernel/Makefile.syscalls
arch/riscv/kernel/Makefile.syscalls
scripts/syscall.tbl

index 3cfafd003b2db6868f234bd53240aa6e6f715b0c..0542a718871afa712446f8c674e680e9d187bb09 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 syscall_abis_32 +=
-syscall_abis_64 += renameat newstat rlimit memfd_secret
+syscall_abis_64 += renameat rlimit memfd_secret
 
 syscalltbl = arch/arm64/tools/syscall_%.tbl
index 523bb411a3bca559cb5b0e988dd08f662dac89d3..ab7d9baa29152da97932c7e447a183fba265451c 100644 (file)
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
-syscall_abis_64 += newstat
+# No special ABIs on loongarch so far
+syscall_abis_64 +=
index 52087a023b3df313709502f4ee3e046578c4b3a8..9668fd1faf60e828ed2786c2ee84739ac1f153fc 100644 (file)
@@ -1,4 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
 syscall_abis_32 += riscv memfd_secret
-syscall_abis_64 += riscv newstat rlimit memfd_secret
+syscall_abis_64 += riscv rlimit memfd_secret
index 797e20ea99a2d53cf01def5802cd648a9db2f0ba..4586a18dfe9b3edb51106c88f39b7869f7d8e535 100644 (file)
@@ -98,9 +98,9 @@
 77     common  tee                             sys_tee
 78     common  readlinkat                      sys_readlinkat
 79     stat64  fstatat64                       sys_fstatat64
-79     newstat fstatat                         sys_newfstatat
+79     64      newfstatat                      sys_newfstatat
 80     stat64  fstat64                         sys_fstat64
-80     newstat fstat                           sys_newfstat
+80     64      newfstat                        sys_newfstat
 81     common  sync                            sys_sync
 82     common  fsync                           sys_fsync
 83     common  fdatasync                       sys_fdatasync