]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Wire up memfd_secret in UAPI header
authorTobias Klauser <tklauser@distanz.ch>
Thu, 5 May 2022 08:18:15 +0000 (10:18 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 2 Jun 2022 04:46:36 +0000 (21:46 -0700)
commit12b8784c58ad1872a1fb5f932b78a3f703d82148
tree97b383be402798dd1aa493c3442864db1d5997e5
parentde2b3086f6532fc26a51e0f4a0a27fa667d255e3
riscv: Wire up memfd_secret in UAPI header

Move the __ARCH_WANT_MEMFD_SECRET define added in commit 3d8293a004df
("arch, mm: wire up memfd_secret system call where relevant") to
<uapi/asm/unistd.h> so __NR_memfd_secret is defined when including
<unistd.h> in userspace.

This allows the memfd_secret selftest to pass on riscv.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Link: https://lore.kernel.org/r/20220505081815.22808-1-tklauser@distanz.ch
Fixes: 3d8293a004df ("arch, mm: wire up memfd_secret system call where relevant")
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/unistd.h
arch/riscv/include/uapi/asm/unistd.h