]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:22:26 +0000 (10:22 +0200)
commitb383f546b8b1135d79874636923a0910fbac2a00
tree2282d8701ee9f3334f37c3bf2f91493edae84075
parent66a0e2741179981adb761ae7e7b195367b2e3ee7
riscv: Wire up memfd_secret in UAPI header

commit 12b8784c58ad1872a1fb5f932b78a3f703d82148 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/include/asm/unistd.h
arch/riscv/include/uapi/asm/unistd.h