* [PATCH] Add compat_ioctl to osst
@ 2005-01-18 11:13 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2005-01-18 11:13 UTC (permalink / raw)
To: James.Bottomley, linux-scsi, osst
Add compat_ioctl to osst
Signed-off-by: Andi Kleen <ak@muc.de>
diff -u linux-2.6.11-rc1-bk4/drivers/scsi/osst.c-o linux-2.6.11-rc1-bk4/drivers/scsi/osst.c
--- linux-2.6.11-rc1-bk4/drivers/scsi/osst.c-o 2005-01-17 10:39:40.000000000 +0100
+++ linux-2.6.11-rc1-bk4/drivers/scsi/osst.c 2005-01-18 05:14:59.000000000 +0100
@@ -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
+
+
\f
/* 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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-18 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-18 11:13 [PATCH] Add compat_ioctl to osst Andi Kleen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.