Merge tag 'mm-hotfixes-stable-2023-05-03-16-27' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / linux / memfd.h
CommitLineData
5d752600
MK
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __LINUX_MEMFD_H
3#define __LINUX_MEMFD_H
4
5#include <linux/file.h>
6
7#ifdef CONFIG_MEMFD_CREATE
f7b8f70b 8extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
5d752600 9#else
f7b8f70b 10static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a)
5d752600
MK
11{
12 return -EINVAL;
13}
14#endif
15
16#endif /* __LINUX_MEMFD_H */