arch: Register fchmodat2, usually as syscall 452
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 11 Jul 2023 16:16:05 +0000 (18:16 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 27 Jul 2023 10:25:35 +0000 (12:25 +0200)
This registers the new fchmodat2 syscall in most places as nuber 452,
with alpha being the exception where it's 562.  I found all these sites
by grepping for fspick, which I assume has found me everything.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Alexey Gladkov <legion@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Message-Id: <a677d521f048e4ca439e7080a5328f21eb8e960e.1689092120.git.legion@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
19 files changed:
arch/alpha/kernel/syscalls/syscall.tbl
arch/arm/tools/syscall.tbl
arch/arm64/include/asm/unistd.h
arch/arm64/include/asm/unistd32.h
arch/ia64/kernel/syscalls/syscall.tbl
arch/m68k/kernel/syscalls/syscall.tbl
arch/microblaze/kernel/syscalls/syscall.tbl
arch/mips/kernel/syscalls/syscall_n32.tbl
arch/mips/kernel/syscalls/syscall_n64.tbl
arch/mips/kernel/syscalls/syscall_o32.tbl
arch/parisc/kernel/syscalls/syscall.tbl
arch/powerpc/kernel/syscalls/syscall.tbl
arch/s390/kernel/syscalls/syscall.tbl
arch/sh/kernel/syscalls/syscall.tbl
arch/sparc/kernel/syscalls/syscall.tbl
arch/x86/entry/syscalls/syscall_32.tbl
arch/x86/entry/syscalls/syscall_64.tbl
arch/xtensa/kernel/syscalls/syscall.tbl
include/uapi/asm-generic/unistd.h

index 1f13995d00d7b4b7cd773b419406b6f24e413038..ad37569d05072acf431c55e4270843b05d315a72 100644 (file)
 559    common  futex_waitv                     sys_futex_waitv
 560    common  set_mempolicy_home_node         sys_ni_syscall
 561    common  cachestat                       sys_cachestat
+562    common  fchmodat2                       sys_fchmodat2
index 8ebed8a138747c0a4ace00253eadcc03f302e06b..c572d6c3dee0fd0f6370a9181099ed0840a0b8cd 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index 64a514f90131b8997c04c01d443dec2335e190f0..bd77253b62e01c051bcaed6425013b95db82a29a 100644 (file)
@@ -39,7 +39,7 @@
 #define __ARM_NR_compat_set_tls                (__ARM_NR_COMPAT_BASE + 5)
 #define __ARM_NR_COMPAT_END            (__ARM_NR_COMPAT_BASE + 0x800)
 
-#define __NR_compat_syscalls           452
+#define __NR_compat_syscalls           453
 #endif
 
 #define __ARCH_WANT_SYS_CLONE
index d952a28463e0180194a1aba744dd2371f74506a5..78b68311ec8192c2afb6d10ba92ebf5556a34b54 100644 (file)
@@ -909,6 +909,8 @@ __SYSCALL(__NR_futex_waitv, sys_futex_waitv)
 __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
 #define __NR_cachestat 451
 __SYSCALL(__NR_cachestat, sys_cachestat)
+#define __NR_fchmodat2 452
+__SYSCALL(__NR_fchmodat2, sys_fchmodat2)
 
 /*
  * Please add new compat syscalls above this comment and update
index f8c74ffeeefbe5d0a01ac5e4ec5794b4dbdaa4d1..83d8609aec030fb6596c47cdf59b2d4ad6bab820 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index 4f504783371fc7b953632557a2afb73bfde118ae..259ceb125367d45a5ce5fef4b8171e663ffff533 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index 858d22bf275c2880422b760337bc3810a8aa05bc..a3798c2637fd197605fbd773c433a9c144b9f10a 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index 1976317d4e8b0eecd27e1be98c8247f2c456fc7c..152034b8e0a0f3166a8b9e92e9edea56b80c0a32 100644 (file)
 449    n32     futex_waitv                     sys_futex_waitv
 450    n32     set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    n32     cachestat                       sys_cachestat
+452    n32     fchmodat2                       sys_fchmodat2
index cfda2511badf3ad0f4ca561eab0b01fd538495f5..cb5e757f6621c885f441e3f258591b0f32ffb84b 100644 (file)
 449    n64     futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    n64     cachestat                       sys_cachestat
+452    n64     fchmodat2                       sys_fchmodat2
index 7692234c37683a6310151812de6f735d0383c842..1a646813afdca4b128443b8c364a018365f35cd7 100644 (file)
 449    o32     futex_waitv                     sys_futex_waitv
 450    o32     set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    o32     cachestat                       sys_cachestat
+452    o32     fchmodat2                       sys_fchmodat2
index a0a9145b6dd4fa0b82a405417299530aa748857c..e97c175b56f965156bdfd680128f1b78e40f5999 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index 8c0b08b7a80ec4b75fbc059054cf745ac89ad3dc..20e50586e8a26c345b89682b7078e929034edfa5 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    nospu   set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index a6935af2235cab6cbc993a2efdb3e6fb18abcaeb..0122cc156952cf55b630584a983702d12eddcc62 100644 (file)
 449  common    futex_waitv             sys_futex_waitv                 sys_futex_waitv
 450  common    set_mempolicy_home_node sys_set_mempolicy_home_node     sys_set_mempolicy_home_node
 451  common    cachestat               sys_cachestat                   sys_cachestat
+452  common    fchmodat2               sys_fchmodat2                   sys_fchmodat2
index 97377e8c50251e30dab1442c6901e9f10e1fb00f..e90d585c4d3e739011d596ced9b2dc19a6e2c0c1 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index faa835f3c54a5f132965e1c63a1072d2d357c539..4ed06c71c43fb76db32882217172f3b4baa2976d 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index bc0a3c941b35c850354fa456ed8aba161dba5d87..2d0b1bd866ead6738e40f8b21cf2808ef66ae857 100644 (file)
 449    i386    futex_waitv             sys_futex_waitv
 450    i386    set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    i386    cachestat               sys_cachestat
+452    i386    fchmodat2               sys_fchmodat2
index 227538b0ce801eeba96e10d8214e7847b77cee88..814768249eae3e3a5256c4f4175dcb66673359a0 100644 (file)
 449    common  futex_waitv             sys_futex_waitv
 450    common  set_mempolicy_home_node sys_set_mempolicy_home_node
 451    common  cachestat               sys_cachestat
+452    common  fchmodat2               sys_fchmodat2
 
 #
 # Due to a historical design error, certain syscalls are numbered differently
index 2b69c3c035b6aedcfff30c0b9fcac5ed08094588..fc1a4f3c81d9b7e6c5cb0b698e251fad31534c4d 100644 (file)
 449    common  futex_waitv                     sys_futex_waitv
 450    common  set_mempolicy_home_node         sys_set_mempolicy_home_node
 451    common  cachestat                       sys_cachestat
+452    common  fchmodat2                       sys_fchmodat2
index fd6c1cb585db43c4e9bbbcffc8ee19a34325debe..abe087c53b4b04348431716c1cb638b99d5a788a 100644 (file)
@@ -820,8 +820,11 @@ __SYSCALL(__NR_set_mempolicy_home_node, sys_set_mempolicy_home_node)
 #define __NR_cachestat 451
 __SYSCALL(__NR_cachestat, sys_cachestat)
 
+#define __NR_fchmodat2 452
+__SYSCALL(__NR_fchmodat2, sys_fchmodat2)
+
 #undef __NR_syscalls
-#define __NR_syscalls 452
+#define __NR_syscalls 453
 
 /*
  * 32 bit systems traditionally used different