From patchwork Fri Jul 31 21:12:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 6919051 Return-Path: X-Original-To: patchwork-linux-rdma@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 098D2C05AD for ; Fri, 31 Jul 2015 21:13:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3988220618 for ; Fri, 31 Jul 2015 21:13:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 295712065D for ; Fri, 31 Jul 2015 21:13:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755883AbbGaVNp (ORCPT ); Fri, 31 Jul 2015 17:13:45 -0400 Received: from mail-bl2on0063.outbound.protection.outlook.com ([65.55.169.63]:3174 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752984AbbGaVMy (ORCPT ); Fri, 31 Jul 2015 17:12:54 -0400 Received: from BY2PR02CA0089.namprd02.prod.outlook.com (10.242.32.47) by CY1PR0201MB0746.namprd02.prod.outlook.com (10.160.141.149) with Microsoft SMTP Server (TLS) id 15.1.219.17; Fri, 31 Jul 2015 21:12:52 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::177) by BY2PR02CA0089.outlook.office365.com (2a01:111:e400:2c2a::47) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 31 Jul 2015 21:12:52 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.172) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.172 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.172; helo=milsmgep11.sandisk.com; Received: from milsmgep11.sandisk.com (63.163.107.172) by BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server id 15.1.231.11 via Frontend Transport; Fri, 31 Jul 2015 21:12:48 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep11.sandisk.com (Symantec Messaging Gateway) with SMTP id D5.2E.04667.0D4EBB55; Fri, 31 Jul 2015 14:12:48 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.224.2; Fri, 31 Jul 2015 14:12:16 -0700 X-AuditID: ac160a68-f790b6d00000123b-89-55bbe4d09922 Received: from [10.60.52.33] ( [10.177.8.100]) by milsmgip11.sandisk.com (Symantec Messaging Gateway) with SMTP id FE.42.03643.0D4EBB55; Fri, 31 Jul 2015 14:12:48 -0700 (PDT) Subject: [PATCH 1/3] IB/srp: Constify a function argument To: Doug Ledford References: <55BBE4A2.5090505@sandisk.com> CC: Sagi Grimberg , Sebastian Parschauer , Christoph Hellwig , "linux-rdma@vger.kernel.org" , "linux-scsi@vger.kernel.org" From: Bart Van Assche Message-ID: <55BBE4D0.4040405@sandisk.com> Date: Fri, 31 Jul 2015 14:12:48 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55BBE4A2.5090505@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42JZI8azSPfCk92hBsvnmFq8PP+B1WLl6qNM Fs8O9bJYdF/fwWZxo+0Bm8XJ2/wObB67bzaweTybfpjJ48+fz8we7/ddZfP4vEkugDWKyyYl NSezLLVI3y6BK2N/z3/mgi72iuPrvzM3MH5i7WLk5JAQMJH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N3MD6daH6IkYmDU6qB8aGwifD+zqYF9zxshfjjxRiNouOzA93nCpyc9bWzfI+U QbpZdcM2Zz312zfDI0pM3m2L+lfz8/Y3kdrAfJn1rxTFLSsT1FdXL/E7GpKzXUVR/+NXy5sq bgXzLj6M6DR0V3/tLFDZUqjHFHzg2nFr88TXq8Mv1XjGTk1LXskmHcvEon/g9UElluKMREMt 5qLiRABlt6hBEQIAAA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:+Sbm1VcCxvyUMOAZit7XATinEg9OZhXzHTfUKEhwnVBATzky3Zpo5k5nLrKy0Nn8xr0ovnlAkVai7RGTXz8UruMw+IlzmoYZItvmmLfUbw7RcZofbNBTcED8kNh9VQMNFbw62DCOBQn1+JC5pCrrkr6dO3AibdRf8yJvSEN+CBgIs61YmpJ1lFV1jI6kmVyxa69+XwHta7k4rjX72lCIXeUfw23Ar+Nz5Nulaj+wbLe8QuS1nOIIAaViCP599qnWk8xIwRpguy6iuBu6XPNNAEukHRO/+p+TcdG7sInPgDt4vBniBtJeEDPi43/LkVyLiifoUxn5do/I8pmlYCompQ== X-Forefront-Antispam-Report: CIP:63.163.107.172; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(54356999)(87936001)(106466001)(229853001)(5001960100002)(76176999)(19580405001)(19580395003)(80316001)(86362001)(50986999)(2950100001)(33656002)(77096005)(5001920100001)(46102003)(92566002)(62966003)(47776003)(65806001)(65956001)(4001350100001)(110136002)(77156002)(50466002)(36756003)(83506001)(23676002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0201MB0746; H:milsmgep11.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0746; 2:mWmdj9WMRDMQBLUmGJqgXPsuasic+pvUSLc8GyZr0z83omTyLl0w1UxkWuNThxfN; 3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hJJen1HbBr1uUawJIKsg7s3wUyRkQNlDUAYC; 4:vX4c0nQzbL+BvZumw3tIydcO7CmOs9/oqVXALzHdqf+RzZrkaM4jYTWRwifFODZNe3AQx+ZHBJilwdBiQWGRH7yrZAuXFr5PQ18G3KmAT27KCdBGvPOH0jsaKFFXA9mUNd5oXTp7bWX22wAQRcc7ZTxoxjFg+1yDAjZoG7LtW8i/WKoGlRc2fHN1WjDyu7dOvH3a1mk2D56ez0UJTbiWR2Rq2N5sNwu0JgmpQ2sTXsGRJ6PATpcuP1QSLWJujk5LZoxsezuToRqOIWf5e3quSFsHoIqT25VbK3k+cUvIXkA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR0201MB0746; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0201MB0746; X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0746; 23:MsRObTMjjRq40Pbm1RVHkhWHF+UCCGUnC63Cjj5GgnzIpPOQTCRnDpMSOrkOH+mfvozpB46r9zsRminFEQS2pnH0sOu61GYIQofLVqRY3HPxHCtwDD8azYk6tmWerFfK4dBNZHBXyoSuSjo2khH1CsA+Cr880YZDvQQx2dsa9k25244GMiu1a+sFM6rjM0unJMKb06gKRMbo61sPRsRSsBaNJRJZf0lxkgJVBBU0tHZO5VdcJEda3QqqprbJRBqmsFDlzBxsD9Wi/jQK5d8j+S/9KQCafvSw3ea/okFnoX1EgmA1AUzLeOX7D2ESZiwKwXeT69lA1+30F1IDGD9vIVBF0Y0xqIjzi8Sela7hdS2iCtN+x81w/frU51Zwwv9JT1SlMcQsKv+zyR5fyJjz+Rsq9S54KNV1RVu9id0G1vlOaPdx9av8GzGoPOK0jczOqYBfCZ7tNRUZrpFnGsy0/tQf/SdwQ1Z4VkVpWrx4Ffp8F0eTezjCNcSMArbr6lwtGqFcnUS6F+QoTpFUckXDzQWs0w2rj7R3wG2E3J7pGQLjMMkswgQ8WPLhbGuac4VUSkAtSGf4My95lo72Pvza71O1WhOZqovJpRZv/Nd1ACSxdZYxXSGWZ1VlbW/heWmV3P2pjXb/K+QEq/Xx2x9+6+VUB465moognUiUzbYslbWK9rt4ZTTuhatpDAGqmhchLdysjBe6SmoJL95GHRCez7Q1F7hJ4+AGA32hr0dlcc5dE3vAax1XBo6Amzu1lYAjGxaR8I3BOID1XQwmkUKIyv5+QPOvaMYOJh65kQPfadKdIFyVXT9k38OkyvjUMeyasafAY9juIeV7lhpqc9Mg26W+sqxXKamOMY2sPITBISOazQYa8YulJlEyzkAFkOUIaXP0vGHrGqhGf4vkZuS2zVi6wA0nHMp0yvGZ2gS LCdg= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0201MB0746; 5:gCMZd4t+KgnO1shCRut0hUGOIkg4NvISmztdDkgNoD21vGzjZuvX7/1ZYH6yjt1sts/w67+BCkwjNEfZLm4cH6/92ykzQbxSS+UK4K/Vt51beVTvSN0Dp88GT4PdWvTbB3lPj2fmAxGffcA8eTQ6tg==; 24:CYE28LzAydXY8mgd/R3jfWzb7jEVkyaN5MfBaLamoainpUhf42293XMHQZBCM4wVWOfsHRqQUWCZpisyGCuqGGfbOQFmMVYVUZx6tDPzIFg=; 20:0Ps3S7mcY0k0Cc0BPWeiUv9LIOFjpt/kRp23fY7NRh/ce/u1n94HiAWFGoqb1kUCXqH26T0wb7duT1RyyyNmTbcU2B7zfu8ZKcgjmQ7JF4uQrg6he1tGH6RmhXPo5C/i8czwE3UkCSCE9dw2QrRcpyd2+80/FXIso4GWH+sv5dY= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2015 21:12:48.9163 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.172]; Helo=[milsmgep11.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0201MB0746 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 patch does not change any functionality. Signed-off-by: Bart Van Assche Cc: Sagi Grimberg Cc: Sebastian Parschauer Cc: Christoph Hellwig --- drivers/infiniband/ulp/srp/ib_srp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 31a20b4..61dadac 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -2171,7 +2171,7 @@ static uint32_t srp_compute_rq_tmo(struct ib_qp_attr *qp_attr, int attr_mask) } static void srp_cm_rep_handler(struct ib_cm_id *cm_id, - struct srp_login_rsp *lrsp, + const struct srp_login_rsp *lrsp, struct srp_rdma_ch *ch) { struct srp_target_port *target = ch->target;