Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f44f35d authored by Ryan C. Underwood's avatar Ryan C. Underwood Committed by Martin K. Petersen
Browse files

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: default avatarRyan C. Underwood <nemesis@icequake.net>
Reviewed-by: default avatarShane Seymour <shane.seymour@hpe.com>
Reviewed-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4e09bff3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1045,6 +1045,9 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
static const struct file_operations tw_fops = {
	.owner		= THIS_MODULE,
	.unlocked_ioctl	= tw_chrdev_ioctl,
#ifdef CONFIG_COMPAT
	.compat_ioctl   = tw_chrdev_ioctl,
#endif
	.open		= tw_chrdev_open,
	.release	= NULL,
	.llseek		= noop_llseek,