提交 4f44f35d 编写于 作者: R Ryan C. Underwood 提交者: Martin K. Petersen

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: NRyan C. Underwood <nemesis@icequake.net>
Reviewed-by: NShane Seymour <shane.seymour@hpe.com>
Reviewed-by: NMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 4e09bff3
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册