summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan C. Underwood <nemesis@icequake.net>2015-12-25 00:45:27 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2016-01-08 12:51:03 -0500
commit4f44f35dd8cf0818c51f399611ef868ebfdaccba (patch)
treec19e9c8cd6ce7b1aa216234fd17c2483f85fb080
parent4e09bff3301ac570cb5d68277e755f1759edfeb2 (diff)
3w-xxxx: Pass through compat mode ioctls
This allows 32-bit userspace tools (tw_cli, smartctl) to work on a 64-bit system. The command buffer is opaque to us, so, no word size problems. Signed-off-by: Ryan C. Underwood <nemesis@icequake.net> Reviewed-by: Shane Seymour <shane.seymour@hpe.com> Reviewed-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/3w-xxxx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c
index 2940bd769936..25aba1613e21 100644
--- a/drivers/scsi/3w-xxxx.c
+++ b/drivers/scsi/3w-xxxx.c
@@ -1045,6 +1045,9 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
1045static const struct file_operations tw_fops = { 1045static const struct file_operations tw_fops = {
1046 .owner = THIS_MODULE, 1046 .owner = THIS_MODULE,
1047 .unlocked_ioctl = tw_chrdev_ioctl, 1047 .unlocked_ioctl = tw_chrdev_ioctl,
1048#ifdef CONFIG_COMPAT
1049 .compat_ioctl = tw_chrdev_ioctl,
1050#endif
1048 .open = tw_chrdev_open, 1051 .open = tw_chrdev_open,
1049 .release = NULL, 1052 .release = NULL,
1050 .llseek = noop_llseek, 1053 .llseek = noop_llseek,