From patchwork Fri Dec 25 05:45:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ryan C. Underwood" X-Patchwork-Id: 7920471 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3540EBEEE5 for ; Fri, 25 Dec 2015 05:52:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38A1520444 for ; Fri, 25 Dec 2015 05:52:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 455AE20425 for ; Fri, 25 Dec 2015 05:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbbLYFwE (ORCPT ); Fri, 25 Dec 2015 00:52:04 -0500 Received: from 64-251-151-187.fidnet.com ([64.251.151.187]:39703 "EHLO mail.icequake.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751156AbbLYFwC (ORCPT ); Fri, 25 Dec 2015 00:52:02 -0500 X-Greylist: delayed 387 seconds by postgrey-1.27 at vger.kernel.org; Fri, 25 Dec 2015 00:52:02 EST Received: from localhost (aurora [127.0.0.1]) by mail.icequake.net (Postfix) with ESMTP id 9ABC9F83B; Thu, 24 Dec 2015 23:45:33 -0600 (CST) X-Virus-Scanned: Debian amavisd-new at icequake.net Received: from mail.icequake.net ([127.0.0.1]) by localhost (aurora.icequake.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WwygWtTfoaR3; Thu, 24 Dec 2015 23:45:31 -0600 (CST) Received: from achpee.wifi.icequake.net (unknown [50.76.49.98]) by mail.icequake.net (Postfix) with ESMTPSA id 5AF2AF83A; Thu, 24 Dec 2015 23:45:31 -0600 (CST) From: "Ryan C. Underwood" To: Adam Radford Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, "Ryan C. Underwood" Subject: [PATCH 1/1] 3w-xxxx: pass through compat mode ioctls Date: Thu, 24 Dec 2015 21:45:27 -0800 Message-Id: <1451022327-26943-1-git-send-email-nemesis@icequake.net> X-Mailer: git-send-email 2.5.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Shane Seymour Reviewed-by: Matthew R. Ochs --- drivers/scsi/3w-xxxx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 2940bd7..25aba16 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) 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,