]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/vhost/scsi.c
Merge tag 'docs-5.5a' of git://git.lwn.net/linux
[linux.git] / drivers / vhost / scsi.c
index a9caf1bc3c3ef29542530f379d8cc13bd273f30f..0b949a14bce36c16320cff2c5b33bdb02691ea85 100644 (file)
@@ -1727,21 +1727,11 @@ vhost_scsi_ioctl(struct file *f,
        }
 }
 
-#ifdef CONFIG_COMPAT
-static long vhost_scsi_compat_ioctl(struct file *f, unsigned int ioctl,
-                               unsigned long arg)
-{
-       return vhost_scsi_ioctl(f, ioctl, (unsigned long)compat_ptr(arg));
-}
-#endif
-
 static const struct file_operations vhost_scsi_fops = {
        .owner          = THIS_MODULE,
        .release        = vhost_scsi_release,
        .unlocked_ioctl = vhost_scsi_ioctl,
-#ifdef CONFIG_COMPAT
-       .compat_ioctl   = vhost_scsi_compat_ioctl,
-#endif
+       .compat_ioctl   = compat_ptr_ioctl,
        .open           = vhost_scsi_open,
        .llseek         = noop_llseek,
 };