From patchwork Fri May 19 18:30:07 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: 9737939 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 BC169601C2 for ; Fri, 19 May 2017 18:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3EDF26256 for ; Fri, 19 May 2017 18:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8A4126E4E; Fri, 19 May 2017 18:32:33 +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 F1D3E26256 for ; Fri, 19 May 2017 18:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755987AbdESScX (ORCPT ); Fri, 19 May 2017 14:32:23 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:16178 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755988AbdESSa1 (ORCPT ); Fri, 19 May 2017 14:30:27 -0400 X-IronPort-AV: E=Sophos;i="5.38,365,1491235200"; d="scan'208";a="20047667" Received: from mail-by2nam03lp0047.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.47]) by ob1.hgst.iphmx.com with ESMTP; 20 May 2017 02:30:25 +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=8KVdeBL4e3Y03jEZ3yLd4jgGwO3Tid45gVqPycicK3A=; b=H87g1w1acNfBBl+XnOQGP+/qoD46LmWeQNOxujdsx4Ro7L1ahoV3uZf5KZm3UEP5IBApstHRLbzgM7oeVcU1YxmuzeDACLbTtY2yN5HSUynC+jTZadkFrDS58Huhu+S+7LHg/2611S5NxjueXmhVtS6PxHr0vVYZdniiOyv4ZX0= Received: from CO2PR04CA028.namprd04.prod.outlook.com (10.141.240.156) by CY4PR04MB0361.namprd04.prod.outlook.com (10.173.188.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Fri, 19 May 2017 18:30:23 +0000 Received: from SN1NAM04FT008.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::201) by CO2PR04CA028.outlook.office365.com (2a01:111:e400:1428::28) 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; Fri, 19 May 2017 18:30:23 +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 SN1NAM04FT008.mail.protection.outlook.com (10.152.88.143) 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; Fri, 19 May 2017 18:30:22 +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 A9.5A.29323.EB93F195; Fri, 19 May 2017 11:30:22 -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; Fri, 19 May 2017 11:30:19 -0700 X-AuditID: 0ac94369-548749800000728b-a3-591f39be23ec Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 3D.37.18148.AB93F195; Fri, 19 May 2017 11:30:18 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke Subject: [PATCH 09/18] scsi: Change argument type of scsi_req_init() Date: Fri, 19 May 2017 11:30:07 -0700 Message-ID: <20170519183016.12646-10-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170519183016.12646-1-bart.vanassche@sandisk.com> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsXCddJ5ke4+S/lIg21TFSwWvNnLZrFy9VEm i439HBbd13ewWSw//o/JgdVj2qRTbB67bzaweXx8eovFY/2WqywenzfJBbBGcdmkpOZklqUW 6dslcGV8mHqTvaBJouLMz1nMDYxTRLoYOTkkBEwkpmy9wQxiCwksZZJY2cjfxcgFZG9jlPjY Mo8Vpuhq50NWiMRmRom15xvBEmwCRhLf3s9kAbFFBAolLm3rYAQpYhaYzCgxs3kDI0hCWMBF 4uaG12wgNouAqsTiSx/AGngFHCROTlrJDrFBXuLslp1gZ3ACxV8eXwgU5wDaZi9xv68eZKaE wDRWiZ5vM5kgegUlTs58AjaHWUBC4uCLF1AvqEucXDKfaQKj0CwkZbOQlC1gZFrFKJabmVOc m55aYGiqV5yYl5JZnK2XnJ+7iRES7Jk7GO8+8T7EKMDBqMTDm/BLLlKINbGsuDL3EKMEB7OS CG+0iXykEG9KYmVValF+fFFpTmrxIUZpDhYlcd5zMlMjhATSE0tSs1NTC1KLYLJMHJxSDYx1 URLbL69imaUs2vNMVSorUIr1WLnOlRv8ov72T7KnbudP/ntXwm9bxue7UxgO5/7ZyOLkL8n/ 9tiLRpa724LO9hcdnmcZb/0qI/GaZ+Of0smq046sV62Vmzv5JP+T38b9B6rf+axuU9vCUXD2 yZOC9LVy96c4u7Coiul+dno2ZbLN5lk3YnKUWIozEg21mIuKEwHGfHHvcgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHJMWRmVeSWpSXmKPExsXCtZEjRXeXpXykwZYp6hYHf7YxWix4s5fN YuXqo0wWG/s5LLqv72CzWH78H5MDm8e0SafYPHbfbGDz+Pj0FovHtDXnmTzWb7nK4vF5k1wA WxSXTUpqTmZZapG+XQJXxoepN9kLmiQqzvycxdzAOEWki5GTQ0LAROJq50PWLkYuDiGBjYwS G09cYgJJsAkYSXx7P5MFxBYRKJS4f/o0G0gRs8BkRomP63aDJYQFXCRubnjNBmKzCKhKLL70 ASjOwcEr4CAx5awXxAJ5ibNbdjKD2JxA4ZfHF7KDlAgJ2Evc76ufwMi9gJFhFaNYbmZOcW56 ZoGhkV5xYl5KZnG2XnJ+7iZGcIhwRu1gvD7R/BAjEwenVAMjk0TuZK4LUUb/3eW97kRtEA/t 3V+v8E+rvfzA2RhviWRlkWsxCbuNDJpS16xgO8ZxivXBsu2Kics+LbvFUtIndJBV8i1DtnSG oLYe+x+WymXrpshEZ1gy9Kyc7LLuRecuJsYbRRqB66c0/J2XrVOY9MQ1eHt3zquD87vvy/KZ ZTk8mzLrW7cSS3FGoqEWc1FxIgBcaVEFwQEAAA== 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)(39840400002)(39450400003)(39410400002)(39850400002)(39860400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(53936002)(4326008)(54906002)(48376002)(47776003)(50466002)(38730400002)(77096006)(72206003)(478600001)(2906002)(86362001)(575784001)(33646002)(36756003)(189998001)(2950100002)(356003)(5660300001)(106466001)(50226002)(6666003)(81166006)(1076002)(8936002)(8676002)(76176999)(50986999)(305945005)(5003940100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR04MB0361; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT008; 1:BvpAJUFU2e95TJg+AaN2LwxardZj1Fi0y4v7rIVoEVaf28imALAKSgF6fZ/YI4g1ME/V5l2LyXvJrrofb+FSmT2ZKKppfvk201+TLR0TnWo82Jfqc0wFuptpIpnPuUZEpOqKugvvhHxKSG3arEII6p6QnaP7hvi5YoXAE+iX7weEa4UZAUv4nx91t2W2qBELj7k/kjgO2Ku0exjm1FVpaEfnMqIA3dbxhHOMWNdqo8jJa6DanffUVNBYOs1dyDtwAqMn7JBBtTcViKNb054Uo1WOG9PdSXodwmKewBSdzo8D/ua4GqqFv3eN4ybq8JUE7fRuFPou01PStcPH9hspNi9l3qwiePlsJTLbSs5LTGwhsF5DbX2at/C1IURI9PEfsrQAaQIePTCpUD+tJW7HVN9CgZpKXTmYTmW5Wx7nV9GeZE7qjKKQhoBvid32/yHn6KhV87flo4NkkwLVYrUmHXk4J/Xrt94hgkqt7QLy7oga5bG5DyD1NjbfUqGLf3A0gERiiKuDBCHheY2awK5xhdQ56ImIAAIxuzT+mQa15jk= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR04MB0361: X-MS-Office365-Filtering-Correlation-Id: fbdd44dd-cae8-46e0-f579-08d49ee51cb0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY4PR04MB0361; X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 3:Y9WSoLNfYffqDpzD6eQUgXLIF6EsE3M1P5GsJTHULOzx6gDvPzSPuZc6lGjR7S84R586fFgjsHrLbMteW86p9SOd9hiwLI3oJHi7W5PwpbeBA/hjUgPe9WpnT/Qx8e3ep3iaa8OfTOl7F1GRsp7DCwRX4IcRzPKPearqP8icIF3uF1TR10B6VeMN+EmwAR60e6s7ya20nHIGv+D0KcmY7VhSoITmQnACUYoui6P27D8HT8PceK9WX69GD1uKRw93YJWApnkYqYAstyp7UVeYel8CJQUE28a6UThASLip8QqUT7df4Ai4ByWzEvdG59f5ui26bIm5DbpqOcSODhYmDE4lq+PQNACMp7bN+z0XBcUuoNBPT3fqqLC+z+RE3Dj9coOgiyhscy0Q8XgUAVtHfY2fZDND1Gu0h2748k0IBluSwgKalkbwn09T5PPS9+hLm+m7fu7ptWGRQkrz/vrF6Qpb+fC0fe/3IQ92dt4cs2FLNQ49y1fpOBSW8BBfDPV9 X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 25:vKqnbhAVxcRLDURHnVzdgvOfZ9io+UW7PKXgbd1H6eCPZUWuk91o9+OfCRMwbA/syrf405j6UCmSfmKlDLwKFZEonTmLbT5QdinkhMmI07We3/yVN8oLVr6ay223DWi45DCnXiXWnEZrt9tJnXR2YXYjUMKzuLB6Zn6ciiCDPjlUUK/3prg0thTaxeuAOIXnmn7Bf9drZBqmT4T+7IRvfNCVZWdVrHZXIoyXHkM2BVXSRsltqlgWmX46nvE2bW3JdX/8fYWBZlrva2FKgvbAu//DivWZ1NqcQMNKcIIK5WVmv+AWDbRW1I8m3AskQtSBdfHfeUI+q+qs31qOVCggqusGtVKtNyBAz8JPrpy54j3fbTKfryqzh6C9dwTMEVEl/FlA39O9L6go5FB/W08ztWc25cx6bu47qwla1mH10y0z8lLWD2sjonMApn363Ljb5pzj5tLxFR/v7tXdGXqFghXpiH4CfEbR99anDxq0a2A=; 31:seK38ecBN/WaC0VKCwOMFJvhjjM38tWz2MHdcGceA/cV383msBhfgiKhUek7m4w2mleTTW9bvDYPIbiDIGWMtm4wrg/gvnOTsYxc+JDxuF83eXz5ryXMbSnwa79anDdSwp9y24Z/T0ej0DBPGDGcNo14GGxBrTFRsz1qdDz9ISwikbWfT++azv9tKBMNgDD5CzIyqNl0UjSAiBNLJHaoOKifEelQK1FSZaXpvj21Rl1K39OiTbPqQ8zv1I+WAkc7WL4fXb4IJbTBC+WXF0j7zw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 20:o4fP6rZ4tnVUx7Uw1LFxbfMeQSTUtYJL/wjwobY49dDlGZtYKJmiGQqSWkkPzUxkCHuBbTv/IBrgmRFNR18Y3W8L5eB0nvz8fFFNW5YOZJbgx6CgYWy7Z0LoLHkzVgPLLmSIhNCq1Fs16FDSUr0caacJaOFbyhZ3A5xjxj2vyz7fA3q5Znvq1RoI0qcWQN67cZUIDyELPlAhrVOwxwK/V8vl0+kmRGBcJ5APYVqi+wZf4lMhBF4C84EkowfbG/WF2xWOImQC/+p4nAcMcFFVnaWrG1B8ThPl0o3tcxjmMivrJWhdU/G0VanwjUnkVJQkyJisCvvg3GtN9QnmnrYId/jAVJzT4G/2tjVHWUhzLa3vpBGQkkZe2zeB0Zbyoz1q20VzXaPZ43WadJ1C7g1JtCvKP7rjE2hz5UPWyZHNM7hurbI6LWuEoKbna0EP9joJefz9LSif/otqgY1/XR9PKKBxr7rSdMLVSsPhYfmrHPCtaxC9UAUC/lWMNlbE+2i1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:CY4PR04MB0361; BCL:0; PCL:0; RULEID:; SRVR:CY4PR04MB0361; X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 4:ptUkKDafbl5cZl+WzZh3KH9BIV2fA9B7gQGPUBiUEAGblnsiRd8hHBd3wVik6PAlijq+h4D/urw+t7JvL9ieXojaS8eWK3wH+UJUIbyoRcJNdADZO8VI0gwjoZcbBPN6VMRe4H2w9GWehAst+I8O7ayn4wG4tfdToAOZmAF1ZuNII8uCaVA/5J4dY6wUYQG4ueehQNJ3X4Rwq8RNe2Qym4D7h1pxh/3GIjpVI6LhHWhKuS6T+n7ozqn5TAnCp9IXgpmdsFStEnBEVPN1w0PX3YCd251sJ6FO/6RMpKLS2ueJRM1gYjiodebgGO27m6nbF8c+bDmf3o7IH4S7wL921hDP5/pGr48/oVMeLjGJgFGHbUH2JJSV7bBLaZUpt3V2uIhMBj/DPGvP2D29nrd714MyyzpHu729aoJryaTfK09oZLyDqR9ursTvreQiW0Z+A2ojsXzetyH7QGqrutYWBqZfJdtozTQKyXvhAdZIRjWB6XyYmry/3SKTpBSIRr/cv//4cu523OJDWBsDZ81HJNdRK0R+PL94iZgpCMMXSgtqhZOgx1ZQHLfhddvKBuJZq1OAE6qaR32V6jE9AP03iKOg3b+Hm4Xlto4GNBr9xyVZyp9aTL5bgPD0+fEFSJpa1yt60EkzNLxNbortwLMUoGv7QHUTvVEiIkOb8OwK2vdEcZZ+8mequBPjNzkWkO01+Gy4EZbYpG92QO/tE7XhwWlZ9L4pkyFcM4qOWmMImn1NYP6q6Z4OysUa5rGSdpZXVShpy8sFd7qr/CdvFRZGNCwgHzNJMgHdkHkXYurACkSrL6ZUyB+aGG7GDm2Ycuupi0sqx04vPbi8Osa8uhYBxQZ1uDzVK1Z7bBSZpNqhgHuWPZhPNJMPOTx/8+GT12kAEesrdnkA4AbtOYfwX2LafGFxHKo33zjpIBgqPS6WbG k= X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR04MB0361; 23:DkiqYCZec9+YjjZgIklknJNSFLPL9WN4M+wWo8tJ6?= =?us-ascii?Q?p9w14MGVB4oOUY21NPPvdTL9+xmW84xFqiAKWg5i9zpZ9EFmVmFthc+6VICF?= =?us-ascii?Q?b6HS0iTaZACv/tGQ85+sVcF5duJs2uT6J8usC4ZpYhkAXaqz80dvCqmiRRn3?= =?us-ascii?Q?eXp0PpyMmS7T7wDtkYtdaI28lH/j3AcGs3dMDFgrV5hiQ5gV/b6m/1i2gJn0?= =?us-ascii?Q?A++RkTuUdmvbWV/EIXY+XIlcdPsh+BStHYMHntm38qTKQh1KaNd/8wRpRg02?= =?us-ascii?Q?19IjRHUStk/Q8KGsoFEec8x2Cieuxt/OVBTykkKdtsgF8k/swLy0kjNfAZUA?= =?us-ascii?Q?nIrkbF8DnZ1/vAjKgbhDJ8Fdy0lsEJW7u0u4X0DNY8d1DWmWY+Zl6hjc294H?= =?us-ascii?Q?ofOwJqvtWSKCP2zcQH4DMwv3zhiMf0yQKy7GbLkTZ2sv1fK5A+CZ7r0RWu/b?= =?us-ascii?Q?sx8IsiWIO5aQ7crMPWlTBukO5k4+ahHbYoEjcZ+gWFBkrgMwR40B8xwt3v68?= =?us-ascii?Q?CwxYUjLiTZBZzAdiKsDFOvFhZW+j6qX5dilCuHutMArcUV+sokiMbFwzIZ2O?= =?us-ascii?Q?e34ZnA6cgTPj2RfDwlhzLwwyLS8ZYPZOAnOiOrJYEmLgRnsUSr2p9keIChVZ?= =?us-ascii?Q?UL4LalYWrgowCncivMVuynQHr1zFiBBe/gYi4IUN8yZ137XYJxNuONwaEBLh?= =?us-ascii?Q?IQl9RoFueuY8IbuT3v/WpGlWHtyChF9fAdhmF2dG/tRCPZNHuQb+SBIcZByT?= =?us-ascii?Q?Xs6lHCsZFPfoDD24gMelPKLTHBIbH/Ev8ILpOdcIqbh0VCYuSd7ryahzYN4w?= =?us-ascii?Q?0KG/9+eDhZmelzMiS4m8Egg4YpSWWSe1Exsi4Gq3oTtOO/RKolzlJCZTrJJU?= =?us-ascii?Q?p9Q/DykiI7styQe1oxMX6EetQfHufJeHce8j3fPctqZtOejvMNS3Wxvsu3bu?= =?us-ascii?Q?lQDEUjNyUrt7R03NyAiRS/PhkmKFxvHeuO0ob866i+IkkoAseVd4aX5YPBBu?= =?us-ascii?Q?RmnG5E15fhApU6V3YrpuMGS7DtrV6NEoWPfC6HKWcingtEeCJmGbsU0OPN5b?= =?us-ascii?Q?ZtlddHbz9LUnaeB7ZnfZIY4s1VX?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 6:Y1k7ofoBqJNBFN1CYH2QlxGTtYwVaqA46CotOsj1zuaPI9IpvK4FpG0vDI8XPBamPV01D++V2k7/gwspYfFTRGc8tbNoYCGgNKZTN+HfF8Au4QqNuWqGLxIpu8lNImYC4xL/gwQPqGkIvce5ApbBhkHcyXfSh1U1qnj2PFYESUJP32EfOmAQODEpujMHPCbYuDGx/mwqdhT05e0rvSybFIBx4wub39x5cuaxzEQICC3JxuTs81JNgVObqXiNN73swL1nmqMuOdAiP+ghGy26nmYuJqjDKFLOUHacYRNJ5+F29TNa8U6K3xjeV8cnvHbZQzNrfyD8SW1C/aS35iAFtxyhjrwg/y4kma8fatREL0qM9U+5p1OANNcaKBAX0F2Wdba7loawBXZOtmMd4FGg198YvmUKE6x8Z2AK+75MRdaFf+EUUGIvPtj7J8w5LxRJrnlwcZD2esQdNHesbyjMKkpqEfHfzKHzH9vQ/1ue1uGQUs4rrfkuM7NLPpjCDh+iQ87X8XR81QTHYANN8JVoCYt3Vr5ZFe78ihRhtus6fDM=; 5:xt6KdS2oXkMyv0wvpb/dT7WAX8RM2DnRCTRxcOana0K5mHy5vr+w0utJLsmlpA+FtHejvrz/sxArqvpHkKi5HNeSY3z0dsm6AdCBYTijULKEdpt38xqTFXnOtLJkAlpwOjx27Y+EuaSR9m9jE0xLrA==; 24:Okz/SEQzmIKatCO04T3j/+Whly9D40xpE3V7CTuqILWwQVNDMbNdeDqCdDhoLSpsjrC6jgLV5alNx8TfL5euAbbNc1cF+N4C3xZRdqna71E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR04MB0361; 7:erQEuqbgZG88qZHAIvRaUAeezzazY0eKmMGcRpTPuxK+jO/phAMAvHfmwmWblquxiFJ8KH5iTlWAMDXTaWpKPkkbxdGE96J90nKo5dLpQ4DdJKr0x4kzZ2VoV+xlAY7ohiFxxDRBuXmB0Ips6d1CpfVY70bPsUY3Y/edzDp49Ow7SaF9wJp3NE35kDruP1ZrYAANHqc17rB+lLfyAY0pWt/tnSHnMHFjajHUM6HxXc3QuJx/6K9fcC9cF5NVD+TUYLQK+07b0wsuWNHHp+5Y0bOmdIIrkXwK8R7SRxQZSgDPLy1HYYCxdDsZLJbV1uDyFs79US6V00t4V4jsepGzQw==; 20:lnM49Gn+Nm4WYFSPQU9P9w2W4JLHg0IzpKwD4nPjbWNO4pWy007di4QnXpOxvKgb1YCGEDxmm9BrBQiswGVSl8rf5f94BkoOXYpUgUSP/RqZveqgcSPhZNXmH6JI56H45pFLy+oI002IjP85NnN5kQGLChrQ7MbZJsrPoijn34A= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 18:30:22.7453 (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: CY4PR04MB0361 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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 Cc: Christoph Hellwig Cc: Hannes Reinecke Reviewed-by: Christoph Hellwig --- 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 824eae707d25..5f77e31c9487 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 a294a010d585..efa5741cab02 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 6de65e73201d..fc049b0265ee 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 */