]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: remove vfs_ioctl export
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2025 10:55:39 +0000 (12:55 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 1 Sep 2025 11:08:01 +0000 (13:08 +0200)
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>
fs/ioctl.c
include/linux/fs.h

index 83d07218b6cd089742b8d797941f337cebd6b3c8..1c152c2b1b67deb7c156ce513dea072aaa0ebdea 100644 (file)
@@ -41,7 +41,7 @@
  *
  * Returns 0 on success, -errno on error.
  */
-int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+static int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 {
        int error = -ENOTTY;
 
@@ -54,7 +54,6 @@ int vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
  out:
        return error;
 }
-EXPORT_SYMBOL(vfs_ioctl);
 
 static int ioctl_fibmap(struct file *filp, int __user *p)
 {
index 34693cae15a2985f5620542c007ae591ca115fa6..4daf9b30a64117045eacfde4e80c246682078df8 100644 (file)
@@ -2053,8 +2053,6 @@ int vfs_fchown(struct file *file, uid_t user, gid_t group);
 int vfs_fchmod(struct file *file, umode_t mode);
 int vfs_utimes(const struct path *path, struct timespec64 *times);
 
-int vfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
-
 #ifdef CONFIG_COMPAT
 extern long compat_ptr_ioctl(struct file *file, unsigned int cmd,
                                        unsigned long arg);