printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / memfd.h
blob3f2cf339ceafd9e5f36605d420b6303085661dfe
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_MEMFD_H
3 #define __LINUX_MEMFD_H
5 #include <linux/file.h>
7 #ifdef CONFIG_MEMFD_CREATE
8 extern long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg);
9 struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx);
10 #else
11 static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned int a)
13 return -EINVAL;
15 static inline struct folio *memfd_alloc_folio(struct file *memfd, pgoff_t idx)
17 return ERR_PTR(-EINVAL);
19 #endif
21 #endif /* __LINUX_MEMFD_H */