]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
fs: remove ksys_ioctl
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Jul 2020 07:00:51 +0000 (09:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:16:01 +0000 (08:16 +0200)
Fold it into the only remaining caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ioctl.c
include/linux/syscalls.h

index d69786d1dd911502bea4b089efe8f57c205c69a2..4e6cc0a7d69c9f27e3b900b2dad72f7904cc90c4 100644 (file)
@@ -736,7 +736,7 @@ static int do_vfs_ioctl(struct file *filp, unsigned int fd,
        return -ENOIOCTLCMD;
 }
 
-int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
+SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
 {
        struct fd f = fdget(fd);
        int error;
@@ -757,11 +757,6 @@ out:
        return error;
 }
 
-SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
-{
-       return ksys_ioctl(fd, cmd, arg);
-}
-
 #ifdef CONFIG_COMPAT
 /**
  * compat_ptr_ioctl - generic implementation of .compat_ioctl file operation
index 39ff738997a1720b10090f36def97f930eab834d..5b0f1fca4cfb9d26d6de9d0da0d64b2b78fe2d53 100644 (file)
@@ -1241,7 +1241,6 @@ int ksys_chroot(const char __user *filename);
 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
 int ksys_chdir(const char __user *filename);
 int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
-int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);
 void ksys_sync(void);
 int ksys_unshare(unsigned long unshare_flags);