From patchwork Tue Aug 29 22:51:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adit Ranadive X-Patchwork-Id: 9928417 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 4F678603B5 for ; Tue, 29 Aug 2017 22:51:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41E6928A63 for ; Tue, 29 Aug 2017 22:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F6FC28A76; Tue, 29 Aug 2017 22:51:48 +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 A28AD28A8F for ; Tue, 29 Aug 2017 22:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbdH2Wvn (ORCPT ); Tue, 29 Aug 2017 18:51:43 -0400 Received: from mail-by2nam03on0076.outbound.protection.outlook.com ([104.47.42.76]:7455 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751240AbdH2Wvm (ORCPT ); Tue, 29 Aug 2017 18:51:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eBVXmwMBFckeMgyULQtAvJ33HD/Nc5TwTSj86OIEae4=; b=ALwhjd3ZZqE022ZvZLT8iwG2n46pt1jCFjwCPXX0ryawfYMCNvq/BwW6uYvrDoMwupw0PoQD1arsgktRZSCMf44+Shg4K8jWfTIETW8Z0MLju1f5qCjcu15FIlhjtdu1VIKHJ/78Ba+ksRv+AisXhm9wotsfkSdcmBdf60gw9Y4= Received: from promb-2s-dhcp95-136.eng.vmware.com (208.91.1.34) by CY4PR05MB3510.namprd05.prod.outlook.com (10.171.247.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.2; Tue, 29 Aug 2017 22:51:40 +0000 From: Adit Ranadive To: dledford@redhat.com, linux-rdma@vger.kernel.org Cc: Adit Ranadive , pv-drivers@vmware.com Subject: [PATCH for-next v1 2/2] RDMA/vmw_pvrdma: Fix a signedness Date: Tue, 29 Aug 2017 15:51:30 -0700 Message-Id: <41188f37ed9e524e6f53759ec92f9dd94c8b47a1.1504045412.git.aditr@vmware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [208.91.1.34] X-ClientProxiedBy: CO2PR05CA0069.namprd05.prod.outlook.com (10.166.88.165) To CY4PR05MB3510.namprd05.prod.outlook.com (10.171.247.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c292355-e0c7-4764-6c9d-08d4ef30836f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR05MB3510; X-Microsoft-Exchange-Diagnostics: 1; CY4PR05MB3510; 3:3sxNtBl752A9dMnktCwGgWIRDtEsHxRnHMtyKd6MBzMq3/Ubi93M4iHB97sGgAU2YD5SIVv5Sqc8NAtOg/7c2E6ngfY8yoPynl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KM76i7u1JW/7QwZ+4f7dmetvAxwVqN8iyDhlA3MxUnARobs1OWHS0Hq8bexnsLPIEray9t1OceAe3G50nQTB7psY37eqVYoeTi2lav1zL+V9Zh55FGbv+atY4SmQSO4ePS/22wTbowhqvCD6NfeNHU1IQPcxHUtoCD+QQkYKnWvNGWSPySWeFIPJJIAH7GwBL15cFFjqwyXGXkb3wNUp8swiLEo4QNNnqs1cVoCpnTPDiZoaFang; 4:C3WWDTNwW1TxwQ1YffH0xKPBvvPwmRLUpua8pb7aNdz/WJJ/vkkzlPMmFU8/4kdID4FeA9EjzDprfnf2yAFerzR/rSZ8DIMKdE+pzkD0Q4KPverb3Og8t3JCUz/spLGBpEi1+Dg/jtHclz4GSV+ygMyn2Yd5k6qB1/6onAUfK69RFD5n78VFlpCpKuCuU0gRbPlvqTq0rA/cybOlmawW3iPzK4smYEda4PvN1YyuzSPrcR+rFYvokctDdKpVf+WY4O0+R4yGqpk5pOoKba8yZh8EZ4L0GOR2EX/aFmA7eiw= X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123558100)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR05MB3510; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR05MB3510; X-Forefront-PRVS: 0414DF926F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(39860400002)(189002)(199003)(50986999)(101416001)(105586002)(5003940100001)(33646002)(106356001)(2906002)(118296001)(42186005)(3846002)(6116002)(2950100002)(36756003)(5660300001)(6486002)(76176999)(6666003)(48376002)(189998001)(47776003)(50466002)(7350300001)(66066001)(478600001)(53936002)(81166006)(81156014)(68736007)(25786009)(305945005)(50226002)(107886003)(110136004)(4326008)(97736004)(575784001)(86362001)(7736002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR05MB3510; H:promb-2s-dhcp95-136.eng.vmware.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aditr@vmware.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR05MB3510; 23:3aLgGMlYf0LWSXafsyXMml0ybh0JN4dMUCnz2B5ZX?= =?us-ascii?Q?lGJ082RVhrtpbyRzCepVptM7TZGu0Z18qQBU2np7I7Rerc8xRhV3OJY14lWg?= =?us-ascii?Q?3HMJEu2+dyGPKynqZRUw+vdf34ZyKZKPf+9xkaQxNuO7sCbVbL7FpvQn0i0D?= =?us-ascii?Q?gWscTKb+ci2dFsbIOkhe9YFZGIHT9+brPIuiBZCLgXIXPtapEXdE/exHZ1cj?= =?us-ascii?Q?Xlb1Ccd8KAB8ZJdkVFY7pFBnwpkWeR5oUXRPQBWfDnUyW/yvGA0YbT+Dkpl2?= =?us-ascii?Q?fhoCx5s+3FQ5a8jfozFkaSsFKKHfWp5oIjx9k8VuhJ2zIVpDZAyupyTlBMgU?= =?us-ascii?Q?1Yry7tLLKRdAzsQJ9nWvrRPzx8FfLiZ7Q/ZTHZt3c7nk/n5edmc7QWB9Crho?= =?us-ascii?Q?WxXDugzmYvcTRzBiTxKX+OQ1WiqR2hmac34toRm+hzbn1gn7Zf4CotHj4U5y?= =?us-ascii?Q?kgOHOk28XI4uw98qsal/VvGirntHVsGlo/YLbf78NcaNuIYdpawY64VckQrT?= =?us-asc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/2EtKJlaBq7TOefWCvAoLnVh0FpqKk9QFDSTKvMbeaIJI8UwmT9EJj+hwnA5aUunpx/htqYsXPopMUxmsA==; 5:BKFXI2cqf++6v+m3sThWCvSdMrt/Yxn6747dYSFEM5MKAQ4WgqMRcZ0FGt9KzgJ35A5ggX2e1Ti+Hvvn4TPUJO/2aquD3R5C9a41iLVWOPXEwUiqlFj2iDQ9kE7azCBwGAfvWJyu9/aLNpG1+Vd8EQ==; 24:AGQ5af/t1jyq8v00JzM8izS79ZE6M+OXXd0Q75PAyX5TI3uly5mpgNMrxbqpe/MsvxuPOVOV83s8PeHZ//PiCNJ5kJImdfSIkSwrTZsaDaM=; 7:RTF597QabW0zZXp+zJ9qYV7pr1njQK4cUWP8HXu9fid3QbZ1yYX8zVKQyfZ724uHFmiXcSWZo0rI9hGMkSmecSNpmSLqB8Mg2g3OshBsb/7yOx/OUw1z2/tBYnoad/PeFP3A0PHzH4wWr4mInXZ1nv1WIaKePkUOlXdBvqRS6kWpdtbZ7JdM9bqjMOpt0lbfEy3PEwPDbG5A2ERsgknO7S1lmfkzOq1UcFNlNS1msWU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR05MB3510; 20:+qxwwLQz2rRRPWWji2BGLgb5+1RI7/js+U3x0UaX3pkttTvxrH82Px3ZJ5mKMOfjUcFVUhRE2T7hwirr1MaTLOJzCRRv0m1rRIRIdMC/VWK9yMWBb6N2TQdkvsyt1YpFwkQNOUZwID06dZhyE8buf9DuvzvrPQ8tK6BEcwyZKRE= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2017 22:51:40.4918 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR05MB3510 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 Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver") Signed-off-by: Adit Ranadive Reviewed-by: Yuval Shaia --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c index 8a12dc7..3562c0c 100644 --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c @@ -299,7 +299,7 @@ static inline struct pvrdma_cqe *get_cqe(struct pvrdma_cq *cq, int i) void _pvrdma_flush_cqe(struct pvrdma_qp *qp, struct pvrdma_cq *cq) { - int head; + unsigned int head; int has_data; if (!cq->is_kernel)