Skip to content

Commit abca658

Browse files
Lain "Fearyncess" Yangchenhuacai
authored andcommitted
LoongArch: Wire up memfd_secret system call
LoongArch supports ARCH_HAS_SET_DIRECT_MAP, therefore wire up the memfd_secret system call, which just depends on it. Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Acked-by: David Hildenbrand (Red Hat) <david@kernel.org> Signed-off-by: Lain "Fearyncess" Yang <fearyncess@aosc.io> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 52c1dbf commit abca658

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/loongarch/include/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010

1111
#define __ARCH_WANT_NEW_STAT
1212
#define __ARCH_WANT_SYS_CLONE
13+
#define __ARCH_WANT_MEMFD_SECRET
1314

1415
#define NR_syscalls (__NR_syscalls)
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
22

3-
# No special ABIs on loongarch so far
4-
syscall_abis_32 +=
5-
syscall_abis_64 +=
3+
syscall_abis_32 += memfd_secret
4+
syscall_abis_64 += memfd_secret

tools/testing/selftests/mm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ TEST_GEN_FILES += madv_populate
7272
TEST_GEN_FILES += map_fixed_noreplace
7373
TEST_GEN_FILES += map_hugetlb
7474
TEST_GEN_FILES += map_populate
75-
ifneq (,$(filter $(ARCH),arm64 riscv riscv64 x86 x86_64))
75+
ifneq (,$(filter $(ARCH),arm64 riscv riscv64 x86 x86_64 loongarch32 loongarch64))
7676
TEST_GEN_FILES += memfd_secret
7777
endif
7878
TEST_GEN_FILES += migration

0 commit comments

Comments
 (0)