[PATCH] Add compat_ioctl to scsi host structure

Andi Kleen
2005-01-18T11:03:55Z

Add a call vector for 32bit compat ioctls to the SCSI host
structure. This is needed for some followon patches.

Signed-off-by: Andi Kleen <ak@muc.de>

diff -u linux-2.6.11-rc1-bk4/include/scsi/scsi_host.h-o linux-2.6.11-rc1-bk4/include/scsi/scsi_host.h
--- linux-2.6.11-rc1-bk4/include/scsi/scsi_host.h-o 2005-01-14 10:12:26.000000000 +0100
+++ linux-2.6.11-rc1-bk4/include/scsi/scsi_host.h 2005-01-18 03:05:31.000000000 +0100
@@ -71,6 +71,16 @@
* Status: OPTIONAL
*/
int (* ioctl)(struct scsi_device *dev, int cmd, void __user *arg);
+
+
+ /*
+ * Compat handler. Handle 32bit ABI.
+ * When unknown ioctl is passed return -ENOIOCTLCMD.
+ * When called the BKL is not hold.
+ * Status: OPTIONAL
+ */
+ int (* compat_ioctl)(struct scsi_device *dev, int cmd, void __user *arg);
+

/*
* The queuecommand function is used to queue up a scsi