From patchwork Fri Jun 3 19:11:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9153939 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 F2B1560221 for ; Fri, 3 Jun 2016 19:11:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3FC228336 for ; Fri, 3 Jun 2016 19:11:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D880C28339; Fri, 3 Jun 2016 19:11:25 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 58E5028336 for ; Fri, 3 Jun 2016 19:11:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964778AbcFCTLY (ORCPT ); Fri, 3 Jun 2016 15:11:24 -0400 Received: from mail-bn1on0091.outbound.protection.outlook.com ([157.56.110.91]:25738 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932379AbcFCTLX (ORCPT ); Fri, 3 Jun 2016 15:11:23 -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=TuHA4d1JwYmcxXUdNKIbO4tgtl2CvZhBpg/bIE+ef5Y=; b=DtuR7gxAePCCq6MAsVOrisVSmrnTvRGTD3hEKdJaaCEeQGJhZj6auumzBOKAKdcnssikzk60X2FbYZdPYCCc0xSi8NaRPo0sl1xkmacamUyWTFeh9yo37Q4fK7KgNFC05TZ8KEW1pTO8zuzvjifSUUmVzhwTP3O5UaZJ+54eB44= Received: from CY1PR0201CA0038.namprd02.prod.outlook.com (10.163.30.176) by BLUPR02MB519.namprd02.prod.outlook.com (10.141.48.17) with Microsoft SMTP Server (TLS) id 15.1.501.7; Fri, 3 Jun 2016 19:11:20 +0000 Received: from BY2FFO11FD023.protection.gbl (2a01:111:f400:7c0c::169) by CY1PR0201CA0038.outlook.office365.com (2a01:111:e400:58b9::48) with Microsoft SMTP Server (TLS) id 15.1.506.9 via Frontend Transport; Fri, 3 Jun 2016 19:11:19 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BY2FFO11FD023.mail.protection.outlook.com (10.1.15.212) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 19:11:19 +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 33.5E.03023.D55D1575; Fri, 3 Jun 2016 12:07:09 -0700 (PDT) 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.279.2; Fri, 3 Jun 2016 12:11:18 -0700 X-AuditID: ac160c69-353ff70000000bcf-f4-5751d55df099 Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 8A.CC.02607.456D1575; Fri, 3 Jun 2016 12:11:18 -0700 (PDT) Subject: [PATCH 6/6] IB/hfi1: Suppress sparse warnings To: Doug Ledford References: <86c06ca1-753c-6b45-3f65-f9a19f7693cf@sandisk.com> CC: "linux-rdma@vger.kernel.org" , "Marciniszyn, Mike" , Dennis Dalessandro From: Bart Van Assche Message-ID: Date: Fri, 3 Jun 2016 12:11:16 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <86c06ca1-753c-6b45-3f65-f9a19f7693cf@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsWyRoxnkW7s1cBwgz/H1Sye733NZvHy/AdW i2eHelksNvxvZHdg8Vi85yWTx/t9V9k8Pm+SC2CO4rJJSc3JLEst0rdL4MroP8VXcIq/onPT L9YGxgm8XYycHBICJhJTm6cydTFycQgJzGWSmDKzixnC2c4oMeH9CnaYqvlvHkElljJKTF/X yQSSEBYwk/j5dSoriC0ioCax6dUisAYhATuJ1x3fWUEamAWWMUp0HFsM1sAmYCTx7f1Mli5G Dg5eoKLG7hSQMIuAisT7K+vASkQFIiQ+/f4CNpNXQFDi5MwnLCA2p4C9xIMP/awgrcwCmhLr d+mDhJkF5CWat84Gu01CYBmrxLU3D5khblCXOLlkPtMERuFZSEbNQmifhaR9ASPzKkax3Myc 4tz01AJDU73ixLyUzOJsveT83E2MkODP3MF494n3IUYBDkYlHt4VCwLChVgTy4orcw8xSnAw K4nwqp8PDBfiTUmsrEotyo8vKs1JLT7EKM3BoiTO63bvS5iQQHpiSWp2ampBahFMlomDU6qB sdoup7iP0/rUpcXim65Z8dwPuhe59e0P1e+881atceZOLl/qdklyR7rokbi3PwINt1bv7nZ/ 9WPlDGnOCZEX5n6R9lzu8yLxw+sDL2Zuto/SMjjyundhj0F217p/N7b9Mo4r5f/AxaItaHYh pVLiXOjc57ELHKPz3nFKv3vO8Zzn/4L1zdLb45RYijMSDbWYi4oTAXBOxmd6AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHJMWRmVeSWpSXmKPExsXCtZEjRTfsWmC4Qfc+eYvne1+zWbw8/4HV 4tmhXhaLDf8b2R1YPBbvecnk8X7fVTaPz5vkApijuGxSUnMyy1KL9O0SuDL6T/EVnOKv6Nz0 i7WBcQJvFyMnh4SAicT8N4+Yuxi5OIQEFjNKTJ5znRkkISxgJvHz61RWEFtEQE1i06tF7CC2 kICdxOuO76wgDcwCyxglOp4cBWtgEzCS+PZ+JksXIwcHL1BRY3cKSJhFQEXi/ZV1TCC2qECE xKffX8Bm8goISpyc+YQFxOYUsJd48KEfLM4soC7xZ94lZghbXqJ562zmCYx8s5C0zEJSNgtJ 2QJG5lWMYrmZOcW56ZkFhoZ6xYl5KZnF2XrJ+bmbGMEhyBm5g/HpRPNDjEwcnFINjMuWbWxk k/HR3Fqs/Ktvev6vuD0z6//zJznpzzXVuPX21mXBJ8+C47vPSs087BYqvNog6YYZZ3VUzEI7 Iz4b7XscbzrrjeTajHTnzuviza9ZJbip+O6CBt/nP8MNJl6a7LpI84nV9A79VHHFCT+OzOCb nsZVfaJOP2iVe3jzgac6L5rlWOeqKrEUZyQaajEXFScCAGMjJDnxAQAA X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(3190300001)(199003)(189002)(9170700003)(106466001)(87936001)(5003600100002)(229853001)(2870700001)(33646002)(36756003)(2906002)(31696002)(4326007)(53416004)(8936002)(8676002)(31686004)(81166006)(92566002)(586003)(189998001)(110136002)(4001350100001)(6806005)(575784001)(86362001)(54356999)(23676002)(83506001)(5008740100001)(76176999)(65956001)(11100500001)(65806001)(47776003)(77096005)(19580405001)(50466002)(19580395003)(2270400002)(2950100001)(50986999)(65826006); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR02MB519; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD023; 1:yjlE9TPHMrniH80ooiFhbf//uqFJsULwFrpyfObNmgdnWcBXZ7SK6vK2Q3vetVBfvdkskKXIDLT0Y93ZBXCmsjpVehn9jv/OXpmeIIs++ob+CYkKK1C6xJLyDDmds11FX5UEjuPdZ6MrYfVZNrIRA1ryL16Xq86/TH9aHqzYyt/RdqXnK1V4XlKTm2iAtbyEPs59AH+svqruzarEjiBE50FpUb3dA9IJZ57AhpaU4t5A/5cNtHr19OHkorU5u9QUyyaGQ1XMNGUpROJyOJDuHv+V6zeWRhmkrx2YFpf2ZqinCsv/6QlZB4vRDsBsoXkirui1tPXMcngUACC1gWk6nBINvC9XE3SeyxJAQFogqdCrAKAMTqTphDvXD2Rh1dbnYhbHsbM4EfSn24t2q/PBEV2YYQa9Mc6NBvIQD8F+NFX/jAbKcwQNyvVJGR1wpCAY3SIoZ3t9AXoVXGGrXM3OXF5+b4FMvqeD/h8nyyZvaEPk2ZbUlEOFdZuj7byPZ8UzlEFTXeA+TDet/0yGP0uT6w== X-MS-Office365-Filtering-Correlation-Id: 8c64fb69-2bd3-402c-bac6-08d38be2d845 X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB519; 2:n1WoZBo8bi053zAbQC8Pk+JHJP8FGQnCOnDMtubEssmxXFsdoIRMCo7CAeuq+sFXWDqKHWUur+ZX73+SSLOQUf6VkodS37xS0d/Zlk/oKKanNTKnERzdraKmqLzGG8pmTAadRArY7Se28qho+9O98Zl4e+b8BXYaBrIWXdGcQJQuz2NzndlK7EmZB0iIsaYN; 3:+y9jJIqfu99B7gu14dwgiGwKOc0+ZY177oVRvebSNz24103qysZHXwAivgqWcR/0Qhu70C42RIzft3r7x5yMz8zwe/TIukMbeNl1tu9AGMzjoRh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z/Snwufy9rvSmiPx9OlmdJT+Mzw8BF+2B1NfKH1VaSrq5nXAsha5JBGumiz6qI40AxDnffTwmR0/7F/7bhel7E/0PE7qB+ATO6L7TjDF3ZfYw0Bng X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(20558992708506)(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(3002001)(6055026); SRVR:BLUPR02MB519; BCL:0; PCL:0; RULEID:; SRVR:BLUPR02MB519; X-Microsoft-Exchange-Diagnostics: 1; BLUPR02MB519; 4:qM+KPiWDU2eq79NzguKncSDANELG1jdPrTJvBcR84xzRgMeW/0C7csip3qjpRKW8XoyDX9SkRASXmZeRthPdcD9b/rs4fX+tdYaRoo1QPEDWCDLDEXCNso9iG/EA4pGMvBWJOD0Hf4gr8delYdt6xr9xSZmpWSYBtTkDZy9KxuB8Wx8t6jBdQq7nBLlX7LgJM2z815VInOe8WJc90JOv7C0DJi+DXZJ+68TOBn3uePGd5Vcn9ceoF68+buIBl3Gzi/5c2CO09n3/aW1w2Bz4dOBwNHuiA9EhsVk6P28jp1srZlg+P2tfjn6sI7D7lfBARZfzrqe2AfQAby3aIkhSwU2HaWGupiZ9FQY+jSlWS1aV+97hVCvA8UqcNND9k6C6X5nIbWKbusqrat94bSvtytP8pmO6sOFXw6nbocLRigdQPskQlJxz0/qIJsnc8y8uf/+7N8itW6MW8PfjnSmho4K4+cKje4rKF9A0ms+MN5STsR2bkFdZxiI6x9pzm6Ma09NXxVe20jUAWBUL9W8K08sEPUdQsYuXkHiF7LRXw7I= X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjAyTUI1MTk7MjM6d2hsSkEyMDM2bmk5a2szdzc5ejhXZjRkSWQx?= =?utf-8?B?ZEJuR3loaTRRVjhpWWVCMlhLZ2F6OWRrbTZuZERtU0lr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eOxOOLEY3/jN7Ra2lA4xO0d9OygLO/vpAfbhT/4OXlenkv2anjwzQXcUsFn08nWk1o=; 7:YrceJLQ0evuyYVNZeBzCN/26WGOeDJw83rLGrKYd0Zl+3Vqfivo6vwmYhTMqwRl9tJaKOTQrp320QqgrxVR2f20Ae3NQfk9MdTspNG2OwFlhkvQ7BiSzY2PvL/ZeowxQ9jnahC9C0SFiMZtUdNqcsUFIcdz5t0oNgIHJcVVfllT710+tErP4j369ZlRBqyAdmDyjX2KUGDziDM5XDKdECmJSo1IvpUB8/HmBe1lq+tU=; 20:wOn3rNbW+PHnlNh76j+2as5FlZD2AQui39ct4CWyN9KtuULNvrEalLi2BhIbjl4V3noL3nFNQ4N1bjvxsPwdVhdjInY4tPYNikjImkbLned1xHpWITFKx21YWqffQkholwUwJVVmdohCsR3NjdyMv+0BlwHmDv/heDJuUvxHRwXg0YNGTGahkp9usLBYM/gmNPPrJodxCDynbzAR7tFJwdhZMMVLbuePQY9mYv3ZGK0tdfywZoRAuS59OCHxt2uA SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 19:11:19.6222 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB519 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that sparse reports the following warnings for the hfi1 driver: trace.c:217:13: warning: no previous prototype for ‘print_u64_array’ [-Wmissing-prototypes] user_sdma.c:1361:17: warning: dubious: !x & y Signed-off-by: Bart Van Assche Cc: Mike Marciniszyn Cc: Dennis Dalessandro --- drivers/infiniband/hw/hfi1/trace.c | 13 ------------- drivers/infiniband/hw/hfi1/user_sdma.c | 4 ++-- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/trace.c b/drivers/infiniband/hw/hfi1/trace.c index 79b2952..4cfb137 100644 --- a/drivers/infiniband/hw/hfi1/trace.c +++ b/drivers/infiniband/hw/hfi1/trace.c @@ -214,19 +214,6 @@ const char *print_u32_array( return ret; } -const char *print_u64_array( - struct trace_seq *p, - u64 *arr, int len) -{ - int i; - const char *ret = trace_seq_buffer_ptr(p); - - for (i = 0; i < len; i++) - trace_seq_printf(p, "%s0x%016llx", i == 0 ? "" : " ", arr[i]); - trace_seq_putc(p, 0); - return ret; -} - __hfi1_trace_fn(PKT); __hfi1_trace_fn(PROC); __hfi1_trace_fn(SDMA); diff --git a/drivers/infiniband/hw/hfi1/user_sdma.c b/drivers/infiniband/hw/hfi1/user_sdma.c index 2eca5b7..47ffd27 100644 --- a/drivers/infiniband/hw/hfi1/user_sdma.c +++ b/drivers/infiniband/hw/hfi1/user_sdma.c @@ -1355,11 +1355,11 @@ static int set_txreq_header(struct user_sdma_request *req, */ SDMA_DBG(req, "TID offset %ubytes %uunits om%u", req->tidoffset, req->tidoffset / req->omfactor, - !!(req->omfactor - KDETH_OM_SMALL)); + req->omfactor != KDETH_OM_SMALL); KDETH_SET(hdr->kdeth.ver_tid_offset, OFFSET, req->tidoffset / req->omfactor); KDETH_SET(hdr->kdeth.ver_tid_offset, OM, - !!(req->omfactor - KDETH_OM_SMALL)); + req->omfactor != KDETH_OM_SMALL); } done: trace_hfi1_sdma_user_header(pq->dd, pq->ctxt, pq->subctxt,