Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Lain "Fearyncess" Yang and committed by
Huacai Chen
abca6583 52c1dbf4

+4 -4
+1
arch/loongarch/include/asm/unistd.h
··· 10 10 11 11 #define __ARCH_WANT_NEW_STAT 12 12 #define __ARCH_WANT_SYS_CLONE 13 + #define __ARCH_WANT_MEMFD_SECRET 13 14 14 15 #define NR_syscalls (__NR_syscalls)
+2 -3
arch/loongarch/kernel/Makefile.syscalls
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 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
+1 -1
tools/testing/selftests/mm/Makefile
··· 72 72 TEST_GEN_FILES += map_fixed_noreplace 73 73 TEST_GEN_FILES += map_hugetlb 74 74 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)) 76 76 TEST_GEN_FILES += memfd_secret 77 77 endif 78 78 TEST_GEN_FILES += migration