Add compat_ioctl to osst
PATCH 1/1 Add compat_ioctl to osst
Add compat_ioctl to osst
Signed-off-by Andi Kleen <[email protected]>
drivers/scsi/osst.c renamed from drivers/scsi/osst.c-o +16 -0
@@ -5117,6 +5117,22 @@return retval; } +#ifdef CONFIG_COMPAT +static long osst_compat_ioctl (struct file * file,unsigned int cmd_in,unsigned long arg) +{ +struct osst_tape *STp = file->private_data; +struct scsi_device *sdev = STp->device; +int ret = -ENOIOCTLCMD ; +if (sdev->host->hostt->compat_ioctl) { + + ret = sdev->host->hostt->compat_ioctl (sdev, cmd_in, arg); + + } +return ret; +} +#endif + +/* Memory handling routines */
@@ -5452,6 +5468,9 @@
.read = osst_read, .write = osst_write, .ioctl = osst_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = osst_compat_ioctl, +#endif .open = os_scsi_tape_open, .flush = os_scsi_tape_flush, .release = os_scsi_tape_close,