summaryrefslogtreecommitdiff
path: root/include/linux/file.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2023-11-30 15:49:10 +0300
committerChristian Brauner <brauner@kernel.org>2023-12-12 16:24:14 +0300
commiteac9189c96196574a83a553ca5a7543dd9f5fe3e (patch)
treec85c66f053f75a511febc04d949b9bbe7f27620e /include/linux/file.h
parent372a34e66fb7f95124fadae9c600b231c35696a7 (diff)
downloadlinux-eac9189c96196574a83a553ca5a7543dd9f5fe3e.tar.xz
file: stop exposing receive_fd_user()
Not every subsystem needs to have their own specialized helper. Just us the __receive_fd() helper. Link: https://lore.kernel.org/r/20231130-vfs-files-fixes-v1-4-e73ca6f4ea83@kernel.org Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/file.h')
-rw-r--r--include/linux/file.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/file.h b/include/linux/file.h
index 6e9099d29343..c0d5219c2852 100644
--- a/include/linux/file.h
+++ b/include/linux/file.h
@@ -101,13 +101,6 @@ extern int __receive_fd(struct file *file, int __user *ufd,
extern int receive_fd(struct file *file, unsigned int o_flags);
-static inline int receive_fd_user(struct file *file, int __user *ufd,
- unsigned int o_flags)
-{
- if (ufd == NULL)
- return -EFAULT;
- return __receive_fd(file, ufd, o_flags);
-}
int receive_fd_replace(int new_fd, struct file *file, unsigned int o_flags);
extern void flush_delayed_fput(void);