Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs: remove vfs_ioctl export

vfs_ioctl() is no longer called by anything outside of fs/ioctl.c, so
remove the global symbol and export as it is not needed.

Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/2025083038-carving-amuck-a4ae@gregkh
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Greg Kroah-Hartman and committed by
Christian Brauner
e5bca063 db2ab24a

+1 -4
+1 -2
fs/ioctl.c
··· 41 41 * 42 42 * Returns 0 on success, -errno on error. 43 43 */ 44 - int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) 44 + static int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) 45 45 { 46 46 int error = -ENOTTY; 47 47 ··· 54 54 out: 55 55 return error; 56 56 } 57 - EXPORT_SYMBOL(vfs_ioctl); 58 57 59 58 static int ioctl_fibmap(struct file *filp, int __user *p) 60 59 {
-2
include/linux/fs.h
··· 2053 2053 int vfs_fchmod(struct file *file, umode_t mode); 2054 2054 int vfs_utimes(const struct path *path, struct timespec64 *times); 2055 2055 2056 - int vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 2057 - 2058 2056 #ifdef CONFIG_COMPAT 2059 2057 extern long compat_ptr_ioctl(struct file *file, unsigned int cmd, 2060 2058 unsigned long arg);