From patchwork Wed May 31 22:52:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9758485 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2208F60360 for ; Wed, 31 May 2017 22:53:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11CDF2766D for ; Wed, 31 May 2017 22:53:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 059F1284D2; Wed, 31 May 2017 22:53:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 409DF2766D for ; Wed, 31 May 2017 22:53:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751015AbdEaWxo (ORCPT ); Wed, 31 May 2017 18:53:44 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:52516 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbdEaWxn (ORCPT ); Wed, 31 May 2017 18:53:43 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="23043790" Received: from mail-bn3nam01lp0182.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.182]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 06:53:09 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Qj5AgAcwLIflYXf//u5duf2Fze4YBLffvymSqvEpHwc=; b=HLV8iCnl5oPe5bp5aRoHX83Ax0pyFRxX32mx2ljk5YishqVIWBnn1eIDd1xrTDgDtjoWxXG5vomFf1fVzidANlyrkrQWfQ2OITIfyI9rB+8RsGFVETwguwGZwvMxVLjIhn4dk0e8110lMVtF2FCwSbH30/ayiZCWM0oMav3RRZs= Received: from BN6PR04CA0016.namprd04.prod.outlook.com (10.172.194.26) by MWHPR04MB0401.namprd04.prod.outlook.com (10.173.48.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 22:52:55 +0000 Received: from CO1NAM04FT018.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::204) by BN6PR04CA0016.outlook.office365.com (2603:10b6:404:cb::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Wed, 31 May 2017 22:52:54 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by CO1NAM04FT018.mail.protection.outlook.com (10.152.90.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 22:52:54 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id FF.F4.51736.4494F295; Wed, 31 May 2017 15:52:53 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Wed, 31 May 2017 15:52:49 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-a0-592f49448f48 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 0D.1F.18148.1494F295; Wed, 31 May 2017 15:52:49 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" Subject: [PATCH v2 04/12] block: Change argument type of scsi_req_init() Date: Wed, 31 May 2017 15:52:38 -0700 Message-ID: <20170531225246.26261-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531225246.26261-1-bart.vanassche@sandisk.com> References: <20170531225246.26261-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFLMWRmVeSWpSXmKPExsXCddJ5ka6rp36kQfd6LovVd/vZLFauPspk sfeWtgOzx+WzpR67bzaweXzeJBfAHMVlk5Kak1mWWqRvl8CVsfrHKqaCczIV3y+9YmlgbJbo YuTkkBAwkfjWspCxi5GLQ0hgKZPE5xNtUM42RomG9lPsMFVbe1axQCQ2M0qsXbeIBSTBJmAk 8e39TDBbREBBouf3SjYQm1mgUOLMboi4sICHxPSu34wgNouAqsSBBY/AhvIK2EvMe/6ADWKB vMTZLTuZQWxOAQeJ1dtPgNUIAdVsOvIYquYTi8TUX1C9ghInZz5hgdglIXHwxQtmiHp1iZNL 5jNNYBSahaRsFpKyBYxMqxjFcjNzinPTUwsMTfWKE/NSMouz9ZLzczcxQkI4cwfj3SfehxgF OBiVeHgFLupFCrEmlhVX5h5ilOBgVhLh9VXTjxTiTUmsrEotyo8vKs1JLT7EKM3BoiTOe05m aoSQQHpiSWp2ampBahFMlomDU6qB0fLIwx0h2zZ3LWPZfsUj47mKpLJCrcbbq4Xlm9rvZzJx ChsfDHl7V8/67qw4raaD+wpuPA4O7vFWvznj2O5zAkm3cs41v153V1Bs48+DalM+TLfU2liX yRewMqYocY/SFOlLW6ctLVrst2L/9gnNZqKHdHby3NpofOzZtsP+cXJZU1beyY9P6FdiKc5I NNRiLipOBAAMtq8fXQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJJMWRmVeSWpSXmKPExsXCtZEjRdfRUz/SYNFGEYvVd/vZLA7+bGO0 WLn6KJPF3lvaDiwel8+Weuy+2cDmMW3NeSaPz5vkAliiuGxSUnMyy1KL9O0SuDJW/1jFVHBO puL7pVcsDYzNEl2MnBwSAiYSW3tWsYDYQgIbGSUedKmC2GwCRhLf3s8Ei4sIKEj0/F7JBmIz CxRKfNnQygRiCwt4SEzv+s0IYrMIqEocWPCIHcTmFbCXWNd8kQ1ivrzE2S07mUFsTgEHidXb T7BD7LKX2HTkMdsERu4FjAyrGMVyM3OKc9MzCwyN9IoT81Iyi7P1kvNzNzGCPc8ZtYPx+kTz Q4xMHJxSDYzS8mvitPI/LGbInPN16vbjRy4+5LXsvVPxwVRclKXOO/666wvveKPaG7ofLB1b Vudbiz63L9swJ3bBOp/Juc+/+88xbetYv2S2eEeKXJdf5THeQKNbRbEPs/h2m+9akdvzn+vr mxcJk1vfT/up1bWno3ypPeMCx5LmjFnVQuecboltTtl54LYSS3FGoqEWc1FxIgA8W8fWrAEA AA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39400400002)(39410400002)(39840400002)(39860400002)(39450400003)(2980300002)(438002)(9170700003)(50466002)(50226002)(356003)(47776003)(8936002)(2906002)(305945005)(81166006)(77096006)(189998001)(8676002)(72206003)(5003940100001)(48376002)(4326008)(54906002)(6666003)(2950100002)(50986999)(1076002)(76176999)(106466001)(5660300001)(33646002)(575784001)(53936002)(478600001)(86362001)(38730400002)(110136004)(107886003)(6916009)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0401; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT018; 1:D9jkOMN4gqRBIsGysa/FlJlK3wVXpeAegQkzImNXaLGMnDKKMZdHmq6X2mPLi2FjFh/QdZVHiWslRI3gtfdJ1Fmp3n8PpBkZPZQE6VWumRRQBYos6DXfE5TupUUrD1hMfZgviBWwthR+2IMAP/4FJVITJitg6GUL1PpDYUmQY6F6TTBvXhjHNVgRhzFQqaZUXddoh33WHEa8JOhVCE4qRY7rSC55TLaGB7v0wIRKTWhc4qW8+NB0nyIUnNjd5GqTRcJkBmtdRNqbjTaSTbHqw1HUSnp6cCxoCqJT1QBYWPFCz1xqw/OlSrSQif45IUzh/dClHTdNEBwvqOT0Doz9TB0qlRluMEiwnSzS70/SP6vthNOzTriLW9dq/349Vca6KJpUnPBcI9vQvNGx0GLO4NML2sYvx5DVWLieyvduSKlxWcml6zywu4WrFIMvCdFvs5XarQNpkQZ8t3Fdq9a1vcbziySIb63ECSkYRPT8IF6cPckCFYDibU44zuTcl5z66hFDSLwGRlf5hmzAdufIuzz0eFzoXGEXEzvLwjlnn48= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0401: X-MS-Office365-Filtering-Correlation-Id: adf16ce0-099a-4101-de91-08d4a877c61f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR04MB0401; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0401; 3:A5mtVj55a12s59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bXSF1opoiZx7PyBje5TuxJN+23QB8zBkN3qdRzgrBRbse+JcAX5it467frGeSAq+qHmUAUEfbqzBSMCKLB4ufszXMUSCM7qcZxS1kggbPMv11mFjSS3C6wearGmwqvzHgtvgzJn1fZvv8wFiI2zUsOBrfvX2ofnxWpj9sziKVMYwf9rPjRtaA7GSEYmAZYXbdgCFYg5I7nYSf+m9g4Scph4RvkGoooP4/dbeeBW3ePRoq/mz/IUEPRw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0401; 20:5Iqo53vHCAoPDJjNg4hz/4e0+9VAH3l9uDSwzvFjtoJjhSXKEaG7JaVeG65Y2tHZ1gRTSG60RTifZ1+gKcq1fmAl4i1Yb3+LC/6TNj3nVD/MBZ+o/cq90fFqycU4ycnfKQSfL8jRtkA0CEnXdnUPMdnMUjb8pbfDuBRCe5Bw/ABCAEZ97a+j0aDHo/lJtDS9/b8veZqsPTr8smTpVdmZpJLPUYvgik7cPGXGuhk4thOOFr5Q++C0mwrqWQQK7dITaWnonDLSaL+uZwcUUBZAnDlggydzcNuZ5ecEF3mzuGHh51qQUDHopopwFEgnI7wZVm4hyM8RxVbkzNdRX9ANd3K+KmxL0T7zvjMGggV8SzhPIt7KeiFGSbBDkOb2ppneXUSYmqzQFWj0XKch5msLbgwATTp6kGYy3t7qZ3ZrZqPejXZREFE7JTry5akXnN9FrKoPOigYvkwpZuoxEbkJdIQ3SCdEdkDCIiwYyUm0goWos7N1R/xsndjhUQS5UsxH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(6072148); SRVR:MWHPR04MB0401; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0401; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0401; 4:WqDjCv327uAQn5UoJ3E2R4Su9BRq+dQAloGXTdZajl?= =?us-ascii?Q?PLzgAExj2JIN0iPldYAb//3IIE99id4zGgL4bdVG9ivZzjPQh6+Whx+NfFgV?= =?us-ascii?Q?OMPBGZcK3nwH+910+7fkg0yPZeovdLtBLdpzZdueeJ+ydU73qYMotHPu8IXB?= =?us-ascii?Q?GHFfxgnYDKN+UdH68NQ+cBOm2P4V3PfE6qruDt/71U6r4MLxJ8Hu10n3fvk8?= =?us-ascii?Q?/7wfSTNRe6RkoZ8UTIapULwCOge8ovmaCPPnXirIDwnt1QISn4m7fytAKFVf?= =?us-ascii?Q?/xAssK2D/BgY6Kl3pMeG9gQPppILoE+R0KP9sNZdyCfc9B8kSh73FAnGzN5U?= =?us-ascii?Q?FGxmCoMyIka5yO2AIA2fkmgooafsx8PoaKhwGfVl8R/ELlS9KxPxO4CI5Vm8?= =?us-ascii?Q?iG6MqKaTt9tZSZ2qE1HFR59WdKBnG1SXsuWiws28BE4vPjYL4x7/u9kwaBfU?= =?us-ascii?Q?dDE4aSCfA5PenUf7TZymzT+aY4tb2V3Xr4QFojJF4bZS30DRD5qzvnavYlSz?= =?us-ascii?Q?VZr3KJw4iTWj7cvZ8KkrNW7KlM2B3t6d7O9VgWsRm64wWbjNnki7cUaNRo99?= =?us-ascii?Q?1Jg50l+Gatc0WA6JLqKnfdHcX0qqMW53TGke6ZIvaHkLGZq7JIvqOG4LHut7?= =?us-ascii?Q?lCxiKichWtRvFSLwreoO0qdI2gS9lk3z5VJFfElZVM4LqAkwBlpqsszvT9hh?= =?us-ascii?Q?C2CMA8xLxFbCDv8lTddHA2LEWFX1+LRFfSRpAfL/8EdKGUcQ5b4bSPmkgqmM?= =?us-ascii?Q?jnYMeOHa93b1o3bjAEjoOewTE35cableHl9IH9O2s72v5lUcTQDy6wLJh7Oj?= =?us-ascii?Q?9i33g6+KA3P1BAqWkzV9aHd3iIFHwf6m/A+Q41uDDBfx5LnA49F81UYPk7My?= =?us-ascii?Q?GVQbT6x7wUeTV52xxWP01NxP97m6lkMwTzSMskAcfvLr4wyIfMG/BVLhJjjm?= =?us-ascii?Q?0D6b86F29DyTcNaA0Mwr4QF2fCc35iVBmYfV3seA=3D=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0401; 23:Yvmnbmc5tuUPczNE6fBfdeC7gtd1OmQ08i1CTqTUa?= =?us-ascii?Q?/vnmPsfHYTwUR3+chJjUfZHXe/2DxwE0pBVByhsLli4a5jdsmdJoWOYnMrGn?= =?us-ascii?Q?0u5uhIDYKbH+phTzmDCLXcF72ydT4aJwXi8T5OCq7uUou7LRYD8wlZki3dUd?= =?us-ascii?Q?zu8ohuceiJyCD42WDdGen+8hPREroC+zMvU7EIOJL4Sgv/FxAC5rj9ZE9WTi?= =?us-ascii?Q?2kaG71d0Xl7eacw/kqAI0bp3JbmpszWP0Hme/RQ9FH9nJOPzldbKoBJHd7kN?= =?us-ascii?Q?eWFZqDJZFUJsZKkbX5lGWniQBOjgdexGPCjDS6HkhicySXEe4jVLbVaG/xYR?= =?us-ascii?Q?d17iYY7S4fuWYbUBonhmITVVo395F9b0629ZWGrFW1VaVrlO7G0zCQuBTlpt?= =?us-ascii?Q?9f2BPzkG/ehQ6/uPWkzeKjdsY4RrVs150YqbZZvr+ES0lrWagNyO054j7bHz?= =?us-ascii?Q?XgOuXDIGwbcp2cJ4KTZjzJWKslVybX2zXKN0eDkq07dhtMRl/wD7UOAWwN2F?= =?us-ascii?Q?ALlJGVtIWPx06oons2HQz5KM6IhvAb56B/762VSEU2MwiUcag0hJB7a6exkb?= =?us-ascii?Q?onqwen6T+lnYoDvCBTxLTcPlNmnOUzIzftLSZx/T26AJfmmAeMIjUZJWgaZ0?= =?us-ascii?Q?H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VwjT1TknlnwolODLyAcE7SEOMjHDunv/EIL3XaQroUpDmYowT5mHRJ9lkHBwaXkNZah32tXuuC+m5BKPVxUXKxh+KxuNTxk=; 5:ZYxin4iyo33k4qejbLAodcM+u3eLs/YpLe+xtsS1LZrvMyQSu0rXA1SwvXRDIPq8X/OtVKLOPYbsMugW2YZD1RHTLa4W3zeCJDne93ndpjYA/PHhCjLGQzW1qM1WlmdfE1RS8tQPZ3DKU/IKDYqSaw==; 24:7g9kKb52H3xOVPJrYX9k0y2tcVr1zjO9ziWJJyIJotCy3w8dPhZS+tpGwKutpVc+MwepLbNDnLNgO0pRTAjX5YUiSjeTntsZs/IO7i0Dbwc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0401; 7:VyIlpax0cTM6u4SAAYrSukWUrZ5sqY1dqiy75Pildg4bF9L9EILj7quK7rHDt5NJUhqlvD4fpoXDzwRmouuJaNBs68EhDkm9XJ2N1NB08/aejklVszULl/2hW8uS/ZpHOdAYplP8MWLq1UUgyeZKFBX3JBx+VZvQtERTcIcQMTzMgJpKA6+H3Bit9Rf1Q99UpTn1GRLBomP6ejmeDskpsKXEQcQMwFMXV9NwTOSPfYGiXu2WYtoMQ/9f/YJuIIWapSif8DLlHTF/y7Lpdcq1iVZLgb9Mvi19SbngC3as0Le5rjfSASvVIrT8cAhjdeu6NmMZKuZh1lMn+aHrykU1Pg==; 20:lIbiVbgHRuOnVqhzRIV9OYVKpgzrDmKRjIXJdHdghgZBZemJOJ3Bjn/XUhrGQe/vGRluXRPsHrN3OHLt8xYKDriSo9tYO5PAz21IMOjKp2wP8FZTwEdwoCChUCQ4SrmG4sP9Dj1+l16Yf1/xZEF/YlxY4VhEp+OS8IFxdKJFW8E= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 22:52:54.2446 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0401 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since scsi_req_init() works on a struct scsi_request, change the argument type into struct scsi_request *. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Petersen --- block/scsi_ioctl.c | 10 +++++++--- drivers/ide/ide-atapi.c | 2 +- drivers/ide/ide-probe.c | 2 +- drivers/scsi/scsi_lib.c | 4 +++- drivers/scsi/scsi_transport_sas.c | 2 +- include/scsi/scsi_request.h | 2 +- 6 files changed, 14 insertions(+), 8 deletions(-) diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index f96c51f5df40..7440de44dd85 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -741,10 +741,14 @@ int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, } EXPORT_SYMBOL(scsi_cmd_blk_ioctl); -void scsi_req_init(struct request *rq) +/** + * scsi_req_init - initialize certain fields of a scsi_request structure + * @req: Pointer to a scsi_request structure. + * Initializes .__cmd[], .cmd, .cmd_len and .sense_len but no other members + * of struct scsi_request. + */ +void scsi_req_init(struct scsi_request *req) { - struct scsi_request *req = scsi_req(rq); - memset(req->__cmd, 0, sizeof(req->__cmd)); req->cmd = req->__cmd; req->cmd_len = BLK_MAX_CDB; diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c index 98e78b520417..5ffecef8b910 100644 --- a/drivers/ide/ide-atapi.c +++ b/drivers/ide/ide-atapi.c @@ -199,7 +199,7 @@ void ide_prep_sense(ide_drive_t *drive, struct request *rq) memset(sense, 0, sizeof(*sense)); blk_rq_init(rq->q, sense_rq); - scsi_req_init(sense_rq); + scsi_req_init(req); err = blk_rq_map_kern(drive->queue, sense_rq, sense, sense_len, GFP_NOIO); diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index c60e5ffc9231..01b2adfd8226 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -745,7 +745,7 @@ static void ide_initialize_rq(struct request *rq) { struct ide_request *req = blk_mq_rq_to_pdu(rq); - scsi_req_init(rq); + scsi_req_init(&req->sreq); req->sreq.sense = req->sense; } diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index e96ffd187558..b629d8cbf0d1 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1136,7 +1136,9 @@ EXPORT_SYMBOL(scsi_init_io); /* Called from inside blk_get_request() */ static void scsi_initialize_rq(struct request *rq) { - scsi_req_init(rq); + struct scsi_cmnd *cmd = blk_mq_rq_to_pdu(rq); + + scsi_req_init(&cmd->req); } /* Called after a request has been started. */ diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c index f5449da6fcad..35598905d785 100644 --- a/drivers/scsi/scsi_transport_sas.c +++ b/drivers/scsi/scsi_transport_sas.c @@ -215,7 +215,7 @@ static void sas_host_release(struct device *dev) static void sas_initialize_rq(struct request *rq) { - scsi_req_init(rq); + scsi_req_init(scsi_req(rq)); } static int sas_bsg_initialize(struct Scsi_Host *shost, struct sas_rphy *rphy) diff --git a/include/scsi/scsi_request.h b/include/scsi/scsi_request.h index f0c76f9dc285..e0afa445ee4e 100644 --- a/include/scsi/scsi_request.h +++ b/include/scsi/scsi_request.h @@ -27,6 +27,6 @@ static inline void scsi_req_free_cmd(struct scsi_request *req) kfree(req->cmd); } -void scsi_req_init(struct request *); +void scsi_req_init(struct scsi_request *req); #endif /* _SCSI_SCSI_REQUEST_H */