xref: /OK3568_Linux_fs/kernel/include/linux/memfd.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __LINUX_MEMFD_H
3*4882a593Smuzhiyun #define __LINUX_MEMFD_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <linux/file.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #ifdef CONFIG_MEMFD_CREATE
8*4882a593Smuzhiyun extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
9*4882a593Smuzhiyun #else
memfd_fcntl(struct file * f,unsigned int c,unsigned long a)10*4882a593Smuzhiyun static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned long a)
11*4882a593Smuzhiyun {
12*4882a593Smuzhiyun 	return -EINVAL;
13*4882a593Smuzhiyun }
14*4882a593Smuzhiyun #endif
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif /* __LINUX_MEMFD_H */
17