From patchwork Wed May 24 00:34:08 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: 9744777 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 7127A602A7 for ; Wed, 24 May 2017 00:36:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 645C72885B for ; Wed, 24 May 2017 00:36:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5931128867; Wed, 24 May 2017 00:36:11 +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 CBF1D2885B for ; Wed, 24 May 2017 00:36:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759591AbdEXAgJ (ORCPT ); Tue, 23 May 2017 20:36:09 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:5769 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760675AbdEXAfS (ORCPT ); Tue, 23 May 2017 20:35:18 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="19885598" Received: from mail-dm3nam03lp0020.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.20]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:34:31 +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=4bgNxdEExAj+LlK8XnqlIGgxsWHDdQNPCqxDph4xhR0=; b=VMVKsWtNawJ0fLBlJbMq7sLkrxgDpN5uIESdmU3blTto6oO89dMT6imyhpDNekDGw2uMvyr4FE5BnM+UZyUkFgWkdt0MzsLBj6sXDadoHDtS+KQsyt2Ga2y0zCWfaIDY1dyr93jp3JsZLYM35XAT9+5nvuKzdTXvFFHawXWfFM8= Received: from DM2PR04CA061.namprd04.prod.outlook.com (10.141.154.179) by CY4PR04MB0503.namprd04.prod.outlook.com (10.173.190.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Wed, 24 May 2017 00:34:28 +0000 Received: from CO1NAM04FT006.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::206) by DM2PR04CA061.outlook.office365.com (2a01:111:e400:243c::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Wed, 24 May 2017 00:34:29 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; HansenPartnership.com; dkim=none (message not signed) header.d=none; HansenPartnership.com; 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 CO1NAM04FT006.mail.protection.outlook.com (10.152.90.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Wed, 24 May 2017 00:34:28 +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 1D.43.45291.315D4295; Tue, 23 May 2017 17:34:27 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 17:34:23 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-04-5924d51374ee Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 47.A3.18148.F05D4295; Tue, 23 May 2017 17:34:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , , "Bart Van Assche" , Hannes Reinecke Subject: [PATCH 19/31] scsi: Change argument type of scsi_req_init() Date: Tue, 23 May 2017 17:34:08 -0700 Message-ID: <20170524003420.5381-20-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170524003420.5381-1-bart.vanassche@sandisk.com> References: <20170524003420.5381-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsXCddJ5ka7wVZVIg9VfBSwWvNnLZrGxn8Ni 7y1ti+7rO9gslh//x+TA6jFt0ik2j49Pb7F4rN9ylcXj8ya5AJYoLpuU1JzMstQifbsEroyn G60LuiUqZnx5wNjAOFeki5GTQ0LARGLGxE7WLkYuDiGBpUwSR5tWskM4Oxgl3nfOYIep6n28 ng0isZFR4uy1BiaQBJuAkcS39zNZQGwRgUKJS9s6GEGKmAUmMErsu/WRDSQhLOAi0bd7PZjN IqAqcbX1AyOIzStgL3G4eSczxAZ5ibNbIGxOoHjXqwlAmzmAttlJLNpeATJTQqCLVeL8u/VQ vYISJ2c+AVvMLCAhcfDFC7BeIQF1iZNL5jNNYBSahaRsFpKyBYxMqxjFcjNzinPTUwsMTfWK E/NSMouz9ZLzczcxQgI8cwfj3SfehxgFOBiVeHgTHFQihVgTy4orcw8xSnAwK4nwLt8AFOJN SaysSi3Kjy8qzUktPsQozcGiJM57TmZqhJBAemJJanZqakFqEUyWiYNTqoGRecoJ7QcmpXd+ T5XLWWy18a7S9y3Oe7Urq7j7Qy6dufQ04cu2yOvdOw74cfuYbQwwOpA55U7UPsXDnBwG1R9+ f76vVb7B+mBATDyjxm5dqYhcEZ7wDXVFFpaOnE/fpl3a8/xYt7qoe3DgiuDpa/bGcO5l6Gzz vck43e2AclBuikdz7OygXCYlluKMREMt5qLiRABbQ6ggbAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBJMWRmVeSWpSXmKPExsXCtZGTTZf/qkqkwaKt4hYHf7YxWix4s5fN YmM/h8XeW9oW3dd3sFksP/6PyYHNY9qkU2weH5/eYvGYtuY8k8f6LVdZPD5vkgtgjeKySUnN ySxLLdK3S+DKeLrRuqBbomLGlweMDYxzRboYOTkkBEwkeh+vZ+ti5OIQEljPKLHk5n0WkASb gJHEt/czwWwRgUKJ+6dPgxUxC0xglDh29xMrSEJYwEWibzdINycHi4CqxNXWD4wgNq+AvcSx 3TtZITbIS5zdspMZxOYEine9msDexcgBtM1OYtH2igmM3AsYGVYxiuVm5hTnpmcWGBrpFSfm pWQWZ+sl5+duYoSERdQOxusTzQ8xMnFwSjUw+q5dzBl8a4uao/2LHfv3SIVeNE57dqja9/9n vlrWQ0XF4ir3NjxY+d7zocrDa9q993cV301n9zR4q5T1ry5IR2XlB0XfTe0f2yR7m/gdeBZf fnDm+nKl9N3iRyKemGxfmuC56JNE0tvigH/3L17JF8vW5pkQ9mjz1PCAvW8vyIV82pZw7Fb9 ayWW4oxEQy3mouJEAJlezTu7AQAA 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)(39860400002)(39410400002)(39400400002)(39840400002)(39850400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(50226002)(50466002)(305945005)(48376002)(1076002)(4326008)(54906002)(2906002)(72206003)(5660300001)(2950100002)(33646002)(6666003)(53936002)(47776003)(8936002)(50986999)(8676002)(106466001)(86362001)(77096006)(81166006)(575784001)(356003)(38730400002)(478600001)(76176999)(5003940100001)(36756003)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR04MB0503; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT006; 1:DTiImb27kpoSVWehjcwZydf1Qv7siM2gFHxLsO8KISqIf+G3H8DT/wk4sr0GOsQ5FBNuSjXdxIBJ1Zb56GtovVpse9mdLd7Jz0ZNEsB8EvedjXI+0hsalQjeBpzlhvFyfWFIQJdR/vILvKPZay0bBEZQZJKHsqlN4uNCCt+1iI1S3YpW/L9eHG6OYyB1msNEuHn6aGWPRvXp7Cqbp4RZkgRwZv4kcpA2X4NYkqqQOayaJM4DeqjaWSt4qgDIPTox4RV0mPWn+uJfBuLViIg+SwlUciNiz6W4OCz6qtCOWlwB+QMjG+Wf+1jQYIHA7qxM9CoSon4wiKk4ehBNv0TbCgCr+LVzNoovjPEbm8h741Jdp4hs91mDo56ugs3UUL6WU7VyS6uTWyLVLxZf7xcHyEBgEPSl+lH6eKuM7nGx32UyBX46mTgbFwAEH2lVYNtM8WSS2L4Yi5Az/n8Ap0lMKeMyKfVv1koA6WiFr2KhL4KKQYONPjNh83rfTa2Q2EMJF/3n185qc+zGHfyGhWcbS/lXnss8y7bbW0vKVQKNGIU= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR04MB0503: X-MS-Office365-Filtering-Correlation-Id: 1a161d1c-ada4-4fc6-ae94-08d4a23ca332 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(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jt3VAh7kd2CVDc3R2X/lvt04SRE+hXNS6RHVyrnG6brDaA49e+wzTAqGG+It5to+tTVCk=; 31:DlUomsGisNdFOlPUykk7/nKwEiMU1lA1G7bhb2A/TH9BhPQwpTfZgXVaOzgmqzRa93X8Uf/o7xDpDUpvrJDzKep1iJ7fVVz8Fpr/RGbl0L+za59WeNdekW9L0K4vahsxnSTQvjWjzaxy8YGpMtki0k9Csj/A0uYqumw6IhG31H5/UWoecmEACPS6ksQHZRFUS77pIcwNIeuDNbrjLKFzb2T2t4pNx7l41UWlWuI0Cl7XOcO+gqPBUJTiBWU1QzHpO++YjbCAiwyCdw9/6LxzGQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0503; 20:h8GaONvGxCAZCjW/Dqn5I4UluSp60nykPNy6ksyV8/C3pLkdpgqsU0VVbZm6APYzudvLDPWyLuqnrTJkU2bHfEU7QuFMr+Q5Uol8/61KwdtbLmbhzLfDX2MOsUruT0G5B/kvpgmbV6vntEqCysbB70LLKpyMZHzTubLYRlVczJ/GpnK+3pMcy8Sg0YTMV/NecuKrcD5NRG/qGp4DA3F5c8MqRyJ13H0UBS0vHKDnPx5kUiPQ4+HwrybO6NnaJ3OybbXn0p6pZAfP366If1/0aTQTP8J9s90Op2D6HUkgCyJcFVvlVtya3qO2O572ib7quR/FYfEuvP+x/gxv0/Gzhrrv2F2ldTM2UnoFfHDC1T6WCrOr7iZfTj2J6WvVieTCOH+cbiBUwFDPO8OQ96QAXfqrjPNWEsGzI42HvHkbkDi4FlLhE83FarOiaiG8M2a92t0P76LbLZ2arnOLTIWrlJsddPS2nR/R8yar5JcKKmkaQtsEAS0uR+W35Sg8b/kk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700052)(100105000095)(100000701052)(100105300095)(100000702052)(100105100095)(6040450)(601004)(2401047)(5005006)(13018025)(8121501046)(13016025)(100000703052)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123564025)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704052)(100105200095)(100000705052)(100105500095); SRVR:CY4PR04MB0503; BCL:0; PCL:0; RULEID:(100000800052)(100110000095)(100000801052)(100110300095)(100000802052)(100110100095)(100000803052)(100110400095)(100000804052)(100110200095); SRVR:CY4PR04MB0503; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR04MB0503; 4:KK5xhBAGpZ726jNJiqmL0cssx5sm4Txyxw3bccA7vT?= =?us-ascii?Q?UE7ygqpQVGOdSfb+MeOBPtH3+C3jfDwxRAjTVpRugEAMpZWJTxK64DEK9sP4?= =?us-ascii?Q?HJ82XKSJpXT4htlaz96Q9iN96Wt2jkTx4mPaJ4JG4XrJcGxoqQkFbhkhk+fn?= =?us-ascii?Q?YyWAoGTjKUMa9OgqwhDqAeTBk5gv8zAIKPv5X04PDlwvyTecp+OaF2LON4Da?= =?us-ascii?Q?anj+1gE6BW55bi+gff2yUrFEQX0fzuZsQcBVaC+mF+4ZlX0v2VsyK2belpKv?= =?us-ascii?Q?+WYxzOjom5J74zISHPQHuCaLjWW22wJDJBw+7k6s2UMz9tSEJCPOwL/lL/ks?= =?us-ascii?Q?iughg3zQeSH6VmsDMU2cbKLlIfJSWEZzXGZ9J6V9+4WpOeIhvQnSabHkZSQC?= =?us-ascii?Q?xKk38eKakjcMcs5zSZu2+dNIqmJGIDoM/ZyKxd/sBl4ZrLBfbiOk8EAjxMu5?= =?us-ascii?Q?w8TRKVWj4sQthrzs4Cp75dbDR4gLK7+bqBm5L+eSuVYfV6O1aeccp9lDhOP7?= =?us-ascii?Q?6/peiz5jxB3JIeBC9BzOBcVZSsV4EZXV2lL8V5UL6t/2IDa99O7hBA1ZbBOc?= =?us-ascii?Q?l0Rat325YJ/c2cHof10m/fHGcrNuxLGVvx+8uoBieKJQR151Vij1qJsjyDtK?= =?us-ascii?Q?zWA0u6nb7VAPcHj3RUE6zOrnYu9loKSqNPpAfBXh/HgotDw3I64ZVPn/nvnc?= =?us-ascii?Q?SpnLq0koAUEbmpStmz917WOXD47qm5X0JiNe3cKp5mvXo3gywhFwK4jWl0Os?= =?us-ascii?Q?M0oGXUJ2h2eW4s7US3SGF3bYdOdBVRcpS/a49yVOEZUKcBxVGmPcE2UfITN0?= =?us-ascii?Q?SSeui4pd68W7IGu4DtMdbXIFxNhyUYGXUrgWU0Y/D9bv62E/H3/+d7TQjmNd?= =?us-ascii?Q?7bG/hiaAncapeJNapzFAGqyU1b6Bzt8fV86D36P+r0sfdKhi+gaLO9/mE+Og?= =?us-ascii?Q?aty75S/1Q+P1GApOwd2INrZ2AomnYqTYLNWi59dSzqtWFPFeJV8Z7pnOxQgM?= =?us-ascii?Q?qASaxEQUEKuh1XEO8f6184idP4D79y7mpMGKk/SeXUfCoZ8tCmmA1CBXrKFI?= =?us-ascii?Q?TITCmfkFGsl2SqfNUyhW7yJdhcFsww/NXZPZrOrRiSz61nRPjPsjLRycwJSg?= =?us-ascii?Q?Q3yTyMcyVCVk6ZducA5v7K8x0Ei6wGal43tngeeYRBITi9bSm8GI8V8E7pvZ?= =?us-ascii?Q?3fe1oU94IOHELbTAn020nxxFy6iGiO8HNpcTS1p5WIbCB3xgUbyJNn4Q3p0x?= =?us-ascii?Q?FVeewbBH5QiDl4YxJI0BWxQxaRIFCE4BFTIgaQpHX9ik6zUu6Ou+VjESt0Ng?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 031763BCAF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR04MB0503; 23:uMhxmwWfdnZoik7BI5yy6DzI2i0uMr+TmrtHDX51N?= =?us-ascii?Q?Ep4YacCzzl+Jq5zkhJRFe7+D44qspe8QPnz/LeNeqno8zUTWIFHEqhWyy7rl?= =?us-ascii?Q?1LM33y9NxzwI3EjyII1I2Omq0KSn6zvgzwjbsNxOeyTECiLwSdjHI13CIP40?= =?us-ascii?Q?41lw+MW8yYDuFRxUtFffxSeLJp9a7pUOQMCs+YUHytl4guEU+VX04wM8xFOS?= =?us-ascii?Q?intHI+ir9NT74c4PfPXOoC1QVh05Xl1lvjuAMLBmE1F99HS35G3XssuFW7vs?= =?us-ascii?Q?TaoNTeTSt4DiAP0NtkwKEIl/alGuBKudvOi05tzWxU1d04FIK9M20gLNkUGL?= =?us-ascii?Q?Q1XhDKLt6pRjCoOD3v0oU0O1iJJaoWF+jx0+L1byeITPAwJF71M7Bq66dGO1?= =?us-ascii?Q?amIM1vYSaIdZ4a6uQE2t9AdIqi9lYxwbbvKHrHwHfurT4wUKcAY53hCxlRvI?= =?us-ascii?Q?UgUG8b+coY2HZYvud2kQh3QquFH1xyr/mkWFtrHWlzHW3dgiyqQtj/KhniWu?= =?us-ascii?Q?rsiOK0sUx8xJi4QQ7lAOQ4877In+z+WD+0PLfDREV+Snt0lB7inqaL591L8G?= =?us-ascii?Q?FOWT+GchELQwKeVFD6fe8yysSt8isU70DTIf1G8yhCyDr5puAFDvNlMHMl8c?= =?us-ascii?Q?5sg0tv/tmWImFWh/TbPnMEwhqu8Ln5WFNtHaond07QvZ06PSk13ABm9eFTsJ?= =?us-ascii?Q?W7AifaZCur9/RPDYvD4cqseroXnp0vEtgWIEZkPQPds5E5pJrxCNwBpgF2sF?= =?us-ascii?Q?J9kJJbKAFv9iCvw2LX6ng6MPTu8iB/92aBk/xEFdhTEs9RcOZd31MpR1MRai?= =?us-ascii?Q?6mbGYs9JgO1XQ3lReChf5Ii1iG+qPGnrS5gjKHeO24BeE480O6xyVlS+65SN?= =?us-ascii?Q?5883vIiSw3EHf2qcbOcQtoqTZ8hc7hWXuLo77xbedXEzye+IST4vnHkMHD/L?= =?us-ascii?Q?B0URpz4NwzYRBmYSR7JlB3m0VNz2jG6A5Ny2u0GHRikAaRDAXenABrEqA2sp?= =?us-ascii?Q?4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ZW4j7OQ+ndZTfCRvW9FtuazWu0JK+FNCQ7GbR74s0XfWKs8lE5r7/F2gciRiLJA0yp948l/avGcNB2SCE5T3gkObiVFZrJFGdvC82GGUgRsr/IhxUSPH0Hll0SvcZSF3Rd1FfvGQA==; 24:HNAq4ujbVg1a+tcsHUMCshq352g9DxCkTUwcT6IznfE2sRhsEDgc1Km1isjhQYNIx6eiViGcwTtzFolxFVIoIMKmYa3XZuLDPiJCUg4Qyrg=; 7:TOuOB9RvTssPBvm1OaRpOGquzMumg8u7wsurI10pOAtXx8M70augMlRzXEQv8jgnwGp5rwQDVU9aOWjjXDwTD5pWnqZCiF17QSR8N04+XGfeRtV2vwoCiBwwPHjagJEqu9h0aNkkikCou1TGwd2J3lvVWQYl9TBR9gg+z2hxnNo7MXf2vllf+2RWcrNBGHJarB8lgFV1FS9L7PGfsdTIHNzTN1F4DvuuAt4ZqMK74O2qT1v0EglIBPvxVP8wbpAJKurXdfKeYQULAaiEf3p/eq9F/v+Gvx6AV2QhcD7hkuhjkKo5IkGjAF0IeEuXMjfGLnGi+YsCRLYasHMdZgAhuQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0503; 20:nFX++HESxwklXAPk+bzfzRIj0pNwLNY+n6vqdZC6EOdX4v+dr2SHrGyjYx1cchjIV3nUZGYwvD63HTDitBFQj5re8QI/nN+7uJGoPo9iU1IpTAWwCnjqrrAc4r6Iisxi7mSUBNckYF06LyetN6zYi94duK7l7eWR5YTYqZhg7MI= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:28.2536 (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: CY4PR04MB0503 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 Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke --- block/scsi_ioctl.c | 10 +++++++--- 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 +- 5 files changed, 13 insertions(+), 7 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-probe.c b/drivers/ide/ide-probe.c index 6b979f27584c..c5c4050f5bbc 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 01ddf05e741e..31d2b9cd20e5 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1135,7 +1135,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 2512242812d6..7c3c7682569d 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 */