Message ID | 56BCDB34.10009@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9FA659F38B for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 11 Feb 2016 19:04:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9D6020221 for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 11 Feb 2016 19:04:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7B3320121 for <patchwork-linux-rdma@patchwork.kernel.org>; Thu, 11 Feb 2016 19:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750800AbcBKTE1 (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Thu, 11 Feb 2016 14:04:27 -0500 Received: from mail-bl2on0084.outbound.protection.outlook.com ([65.55.169.84]:39980 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750735AbcBKTEZ (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Thu, 11 Feb 2016 14:04:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=b7+lJlGurpF49Ww8QDn56AkmwDTEWeQLzqWT8VRrs/A=; b=Xzosud/kBsRULh82TxHl2fI70HgeDInstcc2y6H1Z/hc0+OLUdC9zjtGwTJy5UcVkqnr9sj+yuVxN2zBTt+k9//7U8ozVscMBfSv80ED6NEC+iMXgyXPFaTsOaWczqhpK8qrkJf2uhYpzGxxrHmSEopzDXpmnKwj0qW1rZDRip8= Received: from BY2PR02CA0017.namprd02.prod.outlook.com (10.242.32.17) by BN1PR0201MB0819.namprd02.prod.outlook.com (10.160.170.151) with Microsoft SMTP Server (TLS) id 15.1.403.16; Thu, 11 Feb 2016 19:04:23 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::109) by BY2PR02CA0017.outlook.office365.com (2a01:111:e400:2c2a::17) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Thu, 11 Feb 2016 19:04:23 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.174) smtp.mailfrom=sandisk.com; mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.174 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.174; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.174) by BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server id 15.1.415.6 via Frontend Transport; Thu, 11 Feb 2016 19:04:22 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id 3E.1E.03682.53BDCB65; Thu, 11 Feb 2016 11:04:21 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.248.2; Thu, 11 Feb 2016 11:04:21 -0800 X-AuditID: ac160a69-d37ff70000000e62-4d-56bcdb357e15 Received: from [10.60.52.49] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id A4.D7.02402.43BDCB65; Thu, 11 Feb 2016 11:04:20 -0800 (PST) Subject: [PATCH v4 04/21] IB/srpt: Inline srpt_sdev_name() To: Doug Ledford <dledford@redhat.com> References: <56BCDAAD.7030906@sandisk.com> CC: Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagig@mellanox.com>, "Alex Estrin" <alex.estrin@intel.com>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <56BCDB34.10009@sandisk.com> Date: Thu, 11 Feb 2016 11:04:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56BCDAAD.7030906@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRoxnka7p7T1hBrces1lcePqdyeLl+Q+s FitXH2WyeHaol8XiRtsDNgdWj8V7XjJ57L7ZwObxbPphJo/3+66yeXzeJBfAGsVlk5Kak1mW WqRvl8CV8e3bFMaCfzwVy9bNYW5gvMPVxcjJISFgIjF58XG2LkYuDiGBTYwSF08eYIVwdjBK rF3ynhmm6tC9GVBVcxglzj6/BZYQFrCSOHD5HBOILSKgJrHp1SJ2EFtIQEvieX8/2CRmgVWM EpuuXgdLsAkYSXx7P5MFxOYV0JC4u6ETLM4ioCrx8tt/sKGiAhEShzu72CFqBCVOznwCVM/B wSmgLTHzSgSIySygKbF+lz5IBbOAvMT2t3OYQVZJCBxklWibuo8N4gZ1iZNL5jNNYBSehWTS LIT2WUjaFzAyr2IUy83MKc5NTy0wNNIrTsxLySzO1kvOz93ECI4OrswdjCsmmR9iFOBgVOLh Nbi1J0yINbGsuDL3EKMEB7OSCO/9TUAh3pTEyqrUovz4otKc1OJDjNIcLErivNYtamFCAumJ JanZqakFqUUwWSYOTqkGRsZoia4f9hn1p+WbOqp55vXOvnlqw0cmg9w5i296zjdvXnmvb1XU toeRESZG2uFqORVqs7oead1lqzp1okQ9W+BSw/+wozOrFp4U1LBn/siZ6PrWWGjFk9U3++7m ri94+upPsID/HbfVgVKXHuTIBb6couv+90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rpb9Vs6P3n7cM/yWhKLKJ3hfP1iEArzyJ3kphCSBH8kX5gBanRMuTGkjms5ceZARoIcqQYFkOYNWD4YXjvhBXViwiSumKiUMWmjX95pADawUvRu9Y96ApzUK3BqQ7NQr0klhUMrbtO5kx2n1TjCkriGCebET7tqql/UrasQ2W/Ajj2pzOKEMCw== X-Forefront-Antispam-Report: CIP:63.163.107.174; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(2950100001)(19580405001)(586003)(19580395003)(4001350100001)(50466002)(4326007)(2906002)(65956001)(189998001)(23676002)(5008740100001)(47776003)(86362001)(65806001)(87936001)(1220700001)(92566002)(77096005)(230700001)(11100500001)(36756003)(229853001)(83506001)(64126003)(33656002)(54356999)(106466001)(1096002)(65816999)(76176999)(50986999)(5001960100002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0201MB0819; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0819; 2:zZf19eOGGK0486kFCNWKVNYkm7+gddIG3IYOHk5+gplDl3qGp6Df6khVmeV6kcQPzBzv9mYSFb11I63lb1TD+fWgzmhpWEnvyOFaYDQ7jMuENG43TbxrMmcklBuFGlv+9saVIb+fVNbBZfAxHnOyQA==; 3:DMy5WHz+0VY+pzBlUp2bqrKpck7CnmdwOFboOV711j7Z/4A6UrNOWsDwOgcyd1t4Y7mYfDQ9fZnnmvMKHxuBy7nCj8zBnlMg+MZqnsVpR3+BuWLuVsdkH7IFGvXFjhuCJwDbdoyEtIq0yIZtF2+T/05sAuBgZXqaxuEDODIwlLSceUb7UEWONmIrbHTjqL4DOZ3+liXPnf37bu8Fof4c+6MaiArBMCpw/RhLPAEFLN1NSvUsbQpdBR9Ia++hWOUI/n3r7qSTTNxM1H6OPg3WmA==; 25:emKBdiqL5knLiththb/RZixbEg8cbHCj4DiNuPEwT1D0IZHH6oGvS0KCIQxxEC2ScXt/ySGJqcTI7irLadOpzddTeJVbYp1bQGVoufP1RWMhCb2ccFiwNZpEOsdV6CB1i6g8YQPQ9mdvL1CfVYkRogGkkONnCXx/Z3sO/lO6qnVKU3B3W7XE/GhbCKSH4HPnxT48ugA3dfNUDbcONYWBsqjsgAzjI4UYw5y3zR8yzG2X3zOkdhAx8Z+8y9U7eo4a3EKa+QTGj5Y1rkPM/1dWUYFzajJoLARqNI5rsZgeVlTMW9bDh3obdnYRQHyNnL5N X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BN1PR0201MB0819; X-MS-Office365-Filtering-Correlation-Id: 0933c429-f3db-489f-e5ea-08d333162722 X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0819; 20:F/zvlnXTjzhBKyd4yHUa2OlWMsLkXmrNWK6gc7liDbmSDoLd5eGTcTDp/xgQW9Fm4JROCDoU5VnSexa/mBc2QRROunmuL5l7sJmHxliOao8oDsaQ8bQjWXHXEbVAGXsdYx5j/s8nReRIoVCUg6QUXZuqcGS5Sd0g9lEh67KEaHbrLy8fn9hlHvX3yixDTNP7fh1xXQupn6vXt7e5HNOGAN4ropA/1XWzCFk6hed7qbPsd/oNvteZyxmisaHiCwgTTKGIlPa4OeK28FHC/dnFh0U1M4Ze/2MdRR7uNU83GywTj0AVar5UARbH5/C3xBevIY/1E7s+ku1enZH9J4icr/Hm7mO9OZglofdRFic0trXqAu+pyRuJTyxNCqKclRuLjL/wBW4rpe2t6qRSSWoKx+/XKyF/QBtKDv8lgaMLXgESBv6ryk0jGNbmru62gTecTWzFqmBdlW+GcLtP0SAhceELRYYgMYIiTCMlaKrItbpEX0tQ2hXxZYsODVihVxag X-Microsoft-Antispam-PRVS: <BN1PR0201MB08192597573FB2883A1B065981A80@BN1PR0201MB0819.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13023025)(13015025)(13024025)(8121501046)(13017025)(5005006)(3002001)(10201501046); SRVR:BN1PR0201MB0819; BCL:0; PCL:0; RULEID:; SRVR:BN1PR0201MB0819; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0819; 4:I/d8u3hjefX+FRp4pI7DcPpOWKpiTMQXRA8KFM6VlY8YC1SzZIS8ZmQC/sJyNw6Ru5+6aBCw/WOrUoelX/yLN1I930eB3QAfXn4c8GE3RISNf4WuLHJovxQ+KxXBTcso62l5Sssiqi6J8sjRtp65QzmBEnqd92QMKvSc8F+WvO1yFBPJRRUtgI0EpbHAXHY4C1CnxL21+KUq1vUafmHsaiRIIQZ3VCM79WBDudkozRK5eQ5pPShudlgcGLvE7BpRKeGXZrNYxbyHzx07MR9ZxjoPOZGonxrGbY6IrqboSVmKdwj2lFWSAKi2WGRCoaHtyFs2YgmRHNni0tCUrW3dsY8k3itMO3UC469LT6yO8ae2PRQ7eMWxGt+PCxDSNK4FqhOCYkQuABXKGgBZkyx8Y7KK0zeTZARdWodcaPG66hhStYka1G5nFP5HnpVyiP2I/VlyhETgi35gxOTQa3Pc8kODmEmoMi5PqQCLxRuVg1RdL28pG38a/2rLl1uVPjo7 X-Forefront-PRVS: 08497C3D99 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFQUjAyMDFNQjA4MTk7MjM6WEdRcWxiUlk2ZlRIeDlPM1gvNnpSWGVW?= =?utf-8?B?aHVGeFc3S0x3TjhXdW9rczByT2h2eVFGRy9CcUdqMzBHODcyNHlKUmlHd1Ji?= =?utf-8?B?Z1hUSWdjekxlL0xscjRIKzIxOVdTeWlsRTFRSkhTRmpRaXprSlZyL1J0NFVj?= =?utf-8?B?cERJbUw4UEZPemxZUXV0R1p1Z1pWczFqWVZPL09MNU1kYkQ1OVRyY20zbWUx?= =?utf-8?B?S3J6WXZ6Z25DYUFYMTFwN3JsSkhUdGhOZWg0TlRYeEkwdm9UL1YyMXp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lNveW9zSmRpOThhQldYcjNLemRjVjVn?= =?utf-8?B?M002TnZhQlJkeWpJZGlTdmg2THAwc29QNFJ2QlBCN21Zdk9JM0prbGpDQ0lB?= =?utf-8?B?OTJOU04wNVd0SVIweXpYeGZJK0tuOXJ4QUxYTTVNTFh6SzFJaVdzSVFPS2Ey?= =?utf-8?B?RmhSTjlHTzhGcnhaYVNHZnMxU2JmcXJkL3JoWkVIRFNHQnljOUR3NXdjOHBM?= =?utf-8?Q?5MOw7zQMxz?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0819; 5:GyGmXWz9XhZvWo0g6Tde95D6+42Sn4Mu+DozRQxmkb/fWVpl0JZj5AHK+LdloTZNpGBu/SLvzpoCT/22rxDzUN/LqTUE+bvTrKuVY7jHdWx5mtM/zwDhbsQAQtAfcyXisTFnMzkGdPRxWRetyLi+ig==; 24:8eirHE3aEDExI4fyfjhFJ7plyuW8aAMAB04dR+pSCz5/uTM0K5EbJjdXEIpP4QcEWdyqLCIYvkctAdhIovbL1men0V3ZKhCflTuC/HxvuNk=; 20:SoMtWXX7a8sybWKBKyi3u7HcD7dXzEam8ySTsu20aaoYgzbJl0K9AMmtNdzOqar44yI60wCmK5/TxS7oEBnSe64sW7jC7ynVl6paKpbWT+IZOJOQMOFAsehDGzM+uE/O9jDDenWvO0QslBUVsdR8iAROGeIAgh1EDjdWrx4jwtTEtY9zSLd5Ap5IwlROeGYnG++KRW6JU4jreTK93boTVPEzhS73rqCnmazDCsYv5zeXrDdcqjTLX7RT0sm6Uqng SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2016 19:04:22.7955 (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.174]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0201MB0819 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 |
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 9f5cd3f..babc15b 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -109,16 +109,6 @@ enum dma_data_direction opposite_dma_dir(enum dma_data_direction dir) } } -/** - * srpt_sdev_name() - Return the name associated with the HCA. - * - * Examples are ib0, ib1, ... - */ -static inline const char *srpt_sdev_name(struct srpt_device *sdev) -{ - return sdev->device->name; -} - static enum rdma_ch_state srpt_get_ch_state(struct srpt_rdma_ch *ch) { unsigned long flags; @@ -182,7 +172,7 @@ static void srpt_event_handler(struct ib_event_handler *handler, return; pr_debug("ASYNC event= %d on device= %s\n", event->event, - srpt_sdev_name(sdev)); + sdev->device->name); switch (event->event) { case IB_EVENT_PORT_ERR: @@ -3025,7 +3015,7 @@ static void srpt_add_one(struct ib_device *device) if (srpt_refresh_port(sport)) { pr_err("MAD registration failed for %s-%d.\n", - srpt_sdev_name(sdev), i); + sdev->device->name, i); goto err_ring; } snprintf(sport->port_guid, sizeof(sport->port_guid),