mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
02d88b40cb
Move the __ARCH_WANT_MEMFD_SECRET define added in commit7bb7f2ac24
("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:7bb7f2ac24
("arch, mm: wire up memfd_secret system call where relevant") Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
27 lines
662 B
C
27 lines
662 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012 Regents of the University of California
|
|
*/
|
|
|
|
/*
|
|
* There is explicitly no include guard here because this file is expected to
|
|
* be included multiple times.
|
|
*/
|
|
|
|
#define __ARCH_WANT_SYS_CLONE
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
#define __ARCH_WANT_COMPAT_TRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FTRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FALLOCATE
|
|
#define __ARCH_WANT_COMPAT_PREAD64
|
|
#define __ARCH_WANT_COMPAT_PWRITE64
|
|
#define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
|
|
#define __ARCH_WANT_COMPAT_READAHEAD
|
|
#define __ARCH_WANT_COMPAT_FADVISE64_64
|
|
#endif
|
|
|
|
#include <uapi/asm/unistd.h>
|
|
|
|
#define NR_syscalls (__NR_syscalls)
|