From patchwork Tue Apr 12 21:45:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 8816771 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 D0B54C0553 for ; Tue, 12 Apr 2016 21:45:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D38512034C for ; Tue, 12 Apr 2016 21:45:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B2B092028D for ; Tue, 12 Apr 2016 21:45:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757409AbcDLVpd (ORCPT ); Tue, 12 Apr 2016 17:45:33 -0400 Received: from mail-bn1bon0086.outbound.protection.outlook.com ([157.56.111.86]:52576 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758106AbcDLVpb (ORCPT ); Tue, 12 Apr 2016 17:45:31 -0400 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=6SVicu2eacMo9JFpQDWnyO19HCAcTcyc65TnTiejaa8=; b=KbDb4oduLVP97t8YgoGbSSrGF3NJSn33SJrWlUB3G277dmoGWmRcezoPgJjd9vy7NA91RPYQ3YCt7o2+3CdytNgnmcjQAc4YTaK0OCnubQtU2P8A6LRVjhgq7zJtZAT9Jgs6+txwXGkF1ZSJNMrwAP27t4rDq1YKIgK5O9SW+sE= Received: from CY1PR0201CA0020.namprd02.prod.outlook.com (10.163.30.158) by BY2PR0201MB1925.namprd02.prod.outlook.com (10.163.75.155) with Microsoft SMTP Server (TLS) id 15.1.453.26; Tue, 12 Apr 2016 21:45:26 +0000 Received: from BN1BFFO11FD055.protection.gbl (2a01:111:f400:7c10::1:125) by CY1PR0201CA0020.outlook.office365.com (2a01:111:e400:58b9::30) with Microsoft SMTP Server (TLS) id 15.1.453.26 via Frontend Transport; Tue, 12 Apr 2016 21:45:26 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; chelsio.com; dkim=none (message not signed) header.d=none;chelsio.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BN1BFFO11FD055.mail.protection.outlook.com (10.58.145.10) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Tue, 12 Apr 2016 21:45:26 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [172.22.12.162]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 1A.B1.04010.82C6D075; Tue, 12 Apr 2016 14:44:08 -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.279.2; Tue, 12 Apr 2016 14:45:24 -0700 X-AuditID: ac160c71-33bff70000000faa-b5-570d6c287e0c Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 18.46.03935.47C6D075; Tue, 12 Apr 2016 14:45:24 -0700 (PDT) To: Doug Ledford CC: Steve Wise , Vipul Pandya , "linux-rdma@vger.kernel.org" From: Bart Van Assche Subject: [PATCH] iw_cxgb4: Convert a __force cast Message-ID: <570D6C74.60707@sandisk.com> Date: Tue, 12 Apr 2016 14:45:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsWyRoxnka5GDm+4wZcFwhYvz39gtXh2qJfF 4t/abhaL/z9mMDqweDzdMYfV49Hzc4we7/ddZfP4vEkugCWKyyYlNSezLLVI3y6BK+PFh0cs BZfZK1oWvWZrYFzH1sXIySEhYCLxcf9pVhBbSGAuk0TvRScIewejxI53yTA1j9YuBKrnAoov ZZSYv2I9WIOIgJrEpleL2EESzAK9jBIrb+0Gm8omYCTx7f1MFhBbWMBQ4vHvh+wgNq+AhsS/ pbOYuhg5OFgEVCXadoeDhEUFIiQONb5ngSgRlDg58wkLSAmzgKbE+l36IGFmAXmJ7W/nMIOs khCYxCoxs60R6mh1iZNL5jNNYBSchaR9FkL7LCTtCxiZVzGK5WbmFOempxYYmugVJ+alZBZn 6yXn525ihAR14Q7G17e9DzEKcDAq8fA+cOYJF2JNLCuuzD3EKMHBrCTCK5nFGy7Em5JYWZVa lB9fVJqTWnyIUZqDRUmc92L0xzAhgfTEktTs1NSC1CKYLBMHp1QDY57M/x+svwKMVkscsecO nvNT76P4gZOm1y+fTY9feyGzTtVLlytxQbU4k8Kui2Yn3j3wKnkl3399Y7Emj5S7UP72tw9q lVZXXcldV7vzSd+vRd9W7jNbdLTlauwZSfFqb6lND7d2vVZIeV/Re5/zcvqz/28jLae4qtTX t3naS8rpCbFJt/RGK7EUZyQaajEXFScCAKPuH55mAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNJMWRmVeSWpSXmKPExsXCtZEjRbckhzfc4FenoMXL8x9YLZ4d6mWx +Le2m8Xi/48ZjA4sHk93zGH1ePT8HKPH+31X2Tw+b5ILYInisklJzcksSy3St0vgynjx4RFL wWX2ipZFr9kaGNexdTFyckgImEg8WrsQzBYSWMwocfxKNYgtIqAmsenVIvYuRi4OZoFeRolf zV+ZQBJsAkYS397PZAGxhQUMJR7/fsgOYvMKaEj8WzoLqIaDg0VAVaJtdzhIWFQgQuJQ43sW iBJBiZMzn4DZzALqEn/mXWKGsOUltr+dwzyBkWcWkrJZSMpmISlbwMi8ilEsNzOnODc9s8DQ SK84MS8lszhbLzk/dxMjOLg4o3YwXp9ofoiRiYNTqoGx89jBrO2/Vxd+fFR5rnDnnGlLlqRV 7W7Oyw3ckyzgfuCgedGe7TtiAydOvdUWvm361I/C3H7uL7y6FC6duWPcJ/RI7kf+m3tvFnJ4 X3Q6FfNHwiJaaU9CYVK7sETfXnX2qb3yQapa9x2Yv3Ed/6Xc0ZvteO3cj8d6dVISW6WVmsuO VBunWd1QYinOSDTUYi4qTgQAflnuBN4BAAA= X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(2906002)(77096005)(11100500001)(106466001)(33656002)(5008740100001)(5003600100002)(586003)(229853001)(81166005)(50466002)(2270400002)(86362001)(83506001)(47776003)(19580395003)(87936001)(230700001)(65956001)(65806001)(92566002)(189998001)(65816999)(50986999)(36756003)(6806005)(4326007)(110136002)(53416004)(23676002)(54356999)(1096002)(1220700001)(19580405001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB1925; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD055; 1:M6wBJxg4qlOJ15KpTIzLexDN/yWcwYVlAggCVnlLuHB1+53l+Ho3iJKHw5MVW8InBc45240Wn9HQHzOC0cb36BwFQ7KxwvRfMv5sswl0Rb+DvDQz5hzwwqgLOF6qv4rpoLTkOCGly3upaROKS8jA8y//d9GX6cZk75BIlP3ELl8YzC+2LrKttKFf7GVwEq7loLISve2gRxjyHplzlQV0S5/dLEH5ZrkTEETgQlVSrrLdS1IZEOUe5jc13IbHaifogKt/9DSpKtYSlseT49XfC/SUml2CAmMPm2wVNA0ZQc3edLAyWzUf8ux78Zq9SZl2+L0/ni8g+CRBuhBCZv3M0Cq9ac3NVXhdQxXi1suJXcxoY03zqr/hJT7pqVYVM2E24VeBrglY6PV2wCDNaXEDRoCm6Fvb+HEuzqpw7aucsF2qN6/aJpCFccnI2W1xicKtg/X7nH5dEbVnJL4SnkTh3+0uU0uNAxFWN7u7hdNuDvU= X-MS-Office365-Filtering-Correlation-Id: d05be37c-543d-4f69-20bf-08d3631bc265 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1925; 2:89BxsOrYFwfVbPufdXo5D9D7j5WqsbChdNg3PecdHcFSeyRJd+tjDEqW8eVUvo27bOWb0CzWMdaw5K4wjHU77iy7P7rUlhn6jkECq3Kw4UcAa1/mjWAJ5d9ZU5izKTo7fgTrjINSmxEIks/jSpX4rfmWQ4+dFp4UKhh9fLNVdAHiutiCZBlbqhJ2mqneXSn3; 3:fBfW/ubJl18u2X7GMGbZ/1wu9iANO6cwJD+y7GQGs/Yz5AEjHO2T7ulO1ff3HaEU+z86BrHIeLuTgcyABPCNFJwm3F6awPQJJEV6w7+0253o78ffIw1fSIHmSgyzEb2wBjcR+l3694y6bxAX8Zd2nfRGdm5pcp45VLYDyHqU56cUIBTS9uDJ/aq4UupdhZ7cX2LYuphG35s370hNvuEIFZxejTI9jvHinUR3f3xnMjSNV69AwDH1kpq/VqIgbGPSTSRZyi6d46x3CDzL+5CYqg== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:BY2PR0201MB1925; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1925; 25:obCou+kF8C5/tIaigLQbsPGkPJMoT3LBuJH7PpRfQo3ax85Dp9IfqySCDPHQtdnNImid2/skxQNGUFAy/CuwE+oOgBFTj1XkYMCorEmlNfAyozqOYKNJTAjGM72cfhc4UUtjvyi5NPON3ryEEu7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KsHKozLkLehFbQ6cv/24ciX59G5vZw2+HGjcJDCydXZ/2pb0Of23hkAe3kLdEJCvz; 4:oD/vfzEGbZ1bn6O4snn76jSjk1Tp+rfBzQjwIkigVMVtszLotvOVYS6aJk57TOYXh/RAFPr8yAIZtse85nvuBU5CJDQB++/hJWjqcD0q9vMwpmjhw2u7mHPgN8Z3t0QCFmlBadcMpU4NJ/WcpsOQCxQp6rxdlh0tgQIo33GrAcBmBkxHDFrX5ei9hS90GaOOy9Ge3w52xovrkrB6S17R4BJMb7puakWmHgrh2nEl511QP3G4grkKJKeris9A0wefzYbi5uh30tnHIqlx4Rhe5ZgGKNnb0rwnO1sLBRCJk7QN2tIGTpmrntQcVlLZMtnOQZH0jVKjkzplPXUE62W0Szx+Tub9U7MEDyIygyxlvb6U50SNTLMEKhqd0cG7sU8jNFzHhFsSd4Aalc7qO8Uj4Is0/CyMPYd2SBLZ Y4PnhI4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13016025)(8121501046)(10201501046)(3002001); SRVR:BY2PR0201MB1925; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB1925; X-Forefront-PRVS: 0910AAF391 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTJQUjAyMDFNQjE5MjU7MjM6aVJNR3dhcG0yK0Y3eUVMSUlrNU9lUC8v?= =?utf-8?B?VFhaSDZZRnI4NGRUa1JjUjZvK0dJU1RCTnJacHpqZ1NYTkY0WDhBcWJFSlA0?= =?utf-8?B?RFpBd1BoOVdxd1Naa1NnUW5sNjFnWHp1d1dVK1B1MEtGK0RIUXkvN3I1RkQ5?= =?utf-8?B?SmFQWThNYldac2dMUjBZTlJLMzluZFRtTXNIZjlwRkpYQkFIeVYrZkNwR2NB?= =?utf-8?B?Q2MrMlVpWU40NTZKc2hJZjMybnlKRFV1OFQ1Yjh2YUtB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lFVkhXR2hlaGpwZnFTdnRpVDVV?= =?utf-8?B?YXU0MExXTTJVVnZwV045UkE4dERjYTdWcFplL2F4WUdGK1VGYkhKanRzOVcz?= =?utf-8?B?dTJHWHdXVTNHUUtSRFhPMGxlb3FaMUpXUHVDZE9UM1BtSFhoakl2ZTZxU01F?= =?utf-8?B?Z1FJOTdkbzBqaUJNaU93dklBM1pJbWs3Mk9RWjlaemZtWFZwc2tHcFI0YTZJ?= =?utf-8?B?RGhMbktQaHhxb3hlaTFHc0ZhQXNaUWRKb0lNNGM1S2c9PQ==?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB1925; 5:xFcVnczquGafjxoKjyRjATVcwfTKjU3k0eguD/pwiy4NpJuATVFo+mNvgbfbktxYIdSBZh3coL4W1BmccCHOfsz8kgqamrs8A6/qDW1dfj4LWJMDCgQywWfHXacdwartVZRO9ytU7PGInitG4CLHvg==; 24:F/yh8aE6T3fAhcqqQTwNosOdKbnv0htqGcCer+XaXqk9i5VT9IMFlCJ0WCrdDtKjvAB8N+TTtRWI5SfXCuntDUL9ZmNUXrdPrK6QoRU63V8=; 20:29Y1QzdLRoBHzRV+W80oCiygsJg1eQq+jRvWki6MD6OkT3QtzrU+VO5tKB0WKJBjNl9pCcPcMBsz7br65YP+iRzGdGLb89WmqsPlaJi2skgEOgl4y/6TskrDgjUsAY2JSNVANS9sosM/e4hrniWD2xN437XWT3x+Y4HeAVtJDJJE9X7RvpU1ftjVrXO+w9B71Z6e/6z+owcyVfXcBIYJHTfG/hO+fCmKb9hXVTxUQ4rH6AhSOzFNX/8sjB/fHi03 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2016 21:45:26.1210 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1925 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.8 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 __force casts should be avoided if there is a better alternative. Hence modify the comparison of s_addr with INADDR_ANY such that the __force cast is no longer necessary. Signed-off-by: Bart Van Assche Cc: Steve Wise Cc: Vipul Pandya Acked-by: Steve Wise --- drivers/infiniband/hw/cxgb4/cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 6517113..f1682ca 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c @@ -3108,7 +3108,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) /* * Handle loopback requests to INADDR_ANY. */ - if ((__force int)raddr->sin_addr.s_addr == INADDR_ANY) { + if (raddr->sin_addr.s_addr == htonl(INADDR_ANY)) { err = pick_local_ipaddrs(dev, cm_id); if (err) goto fail1;