From patchwork Thu Dec 14 00:25:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Tan X-Patchwork-Id: 10111267 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 0868B60327 for ; Thu, 14 Dec 2017 00:25:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDCA828E2F for ; Thu, 14 Dec 2017 00:25:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E27EC28EE3; Thu, 14 Dec 2017 00:25:24 +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 5C49E28E2F for ; Thu, 14 Dec 2017 00:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751026AbdLNAZX (ORCPT ); Wed, 13 Dec 2017 19:25:23 -0500 Received: from mail-sn1nam02on0044.outbound.protection.outlook.com ([104.47.36.44]:26870 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750795AbdLNAZW (ORCPT ); Wed, 13 Dec 2017 19:25:22 -0500 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=Q/eWimYf+Zzpa0K9p+3vX38Rr3t0nUZTyprG69MJI6k=; b=OwzdKs5zAUm7BbWds6I1zWCYq62Ztw7VX+bbUIt8Qegs4eaNlUc/iEUDGQj78PuRk/IbvCMYFPK68RdJLthXH6KcrqeOOGINTqibAV/OfPPrdovVvc1JA3Pg/TL6k5vvBrDvdWyAN3sH2kMhn9DLHvulnp7AQ+mdeqeQcA7Ww10= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bryantan@vmware.com; Received: from bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com (208.91.1.34) by CY1PR05MB2779.namprd05.prod.outlook.com (10.167.18.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.2; Thu, 14 Dec 2017 00:25:19 +0000 Date: Wed, 13 Dec 2017 16:25:01 -0800 From: Bryan Tan To: linux-rdma@vger.kernel.org Subject: [PATCH v1 for-rc 6/8] RDMA/vmw_pvrdma: Remove usage of BIT() from UAPI header Message-ID: <20171214002451.GA16748@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171214001753.GA9780@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [208.91.1.34] X-ClientProxiedBy: VI1PR0502CA0032.eurprd05.prod.outlook.com (52.134.0.173) To CY1PR05MB2779.namprd05.prod.outlook.com (10.167.18.25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ac64aedb-cef5-4c69-c06c-08d5428928fd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307); SRVR:CY1PR05MB2779; X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB2779; 3:snd+6gAdE6xGAjtOG/bObpW7Z4n0WJLhMfSY03E+tw0ZQ5EJ0rvMF7+7rer+AOeBNFKOTlxsqcrhM3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a7Ti7lt7ar7vEdz3XHf+F2UBB+CZDjxzdydJG4VXelyYwNfVvbKP7LfR7hfACO/dDtv9UzIDUcCMMXK0tvektdHidrxsRMkFcpldqYokoty+XDerj36iU2I0Bk2wzayW7sPkw1smvDQ7fAa5dqGw3PYKakN4RkbBDuaYcd3RUd9duCSfukViDfsDMJ4YSrKRa0KoFsQrRbKQdFz3e9eHOSbvqoW8s68mWksi3b03Uw4FYf+gATnEcMNbcGBDly5yyAXo0InCMGgWBy9yVgO0DCWkLYO+LCaai; 4:9/QrYOD43ZZSucPESjOF0EVt0URbTxuVh3b6rbpW7a/1vhrHJDJjbi2zve+QGqjDkq4LF4V2tS87z8C6d4jw5w7B6JEi6mdPbmcoAjSqjWHxJ60fZOLbUpsHjugjtk5bXc2XRm4J8xAAHG8YOQj/YZUTdLApDMgvXlWqs/ZwJ3iBMU+FeVLozrv7S8cR9dPMR9V5vp5l78Cuu3Idv4Etq3WDP1uWfqFFSFn5qXZbKKbH4OBJMYN+u4ava/Y43Y/NB4qSBNQE9AzDsLM3q1nkuwXxRtV9RNzQHjG3qi2vcB3wNwahr1R0jyIVUhq6Eelj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231023)(93006095)(93001095)(6041248)(20161123555025)(20161123560025)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR05MB2779; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR05MB2779; X-Forefront-PRVS: 05214FD68E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(346002)(396003)(366004)(376002)(39860400002)(189003)(199004)(86362001)(2906002)(53936002)(5660300001)(52116002)(7696005)(16526018)(2351001)(2361001)(478600001)(50466002)(25786009)(55016002)(2950100002)(7736002)(8936002)(6916009)(6666003)(97736004)(386003)(66066001)(83506002)(316002)(106356001)(23726003)(8676002)(33656002)(16586007)(58126008)(68736007)(105586002)(6116002)(1076002)(3846002)(47776003)(81166006)(81156014)(305945005)(18370500001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR05MB2779; H:bryantan-devbox.prom.eng.vmware.com.prom.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) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR05MB2779; 23:+phgNikJ458npmW+d+d80eCDZzRgBNA4PJyCebyGl?= =?us-ascii?Q?Th2uzToQApJ3woeFvBGvjgl77csgLSt1Thalf11Tw9bV2u3CK7HlCkkff0Xc?= =?us-ascii?Q?WdUCOMJNKxr7lmYOwEawVZLGNwnCFOoMbDgfJoSgx9ECTZdT4McUgi8XcVSE?= =?us-ascii?Q?P4mFeOtdNsAPviYeCd4VE2HAiUnBTi235ei6owTMWeernsxfas4ruV938Rn4?= =?us-ascii?Q?w+911kPHxLDHhIJS3WuoCmE9n8XoVh1Sx59og5hiJpCrUjTDc2WNqIn7iMJE?= =?us-ascii?Q?NzVgZV1KCmrQavmV73pjyjrG48zBGAhJw6EUvpPc+1i7o6K3Fu8BM1YBB3vX?= =?us-ascii?Q?JVzFTh7/BpwrsX+02U1cgULzZHQsytPTK8Ie6BiHAbwWUmB19dTGncGN02Te?= =?us-ascii?Q?kC0EoueXzbzNO+ho+6E7tFATl4hAOXL5U3Mqt/114tso0pZYHNyZ0i8iI564?= =?us-ascii?Q?tbQNRO4kbrgOnMDgY4xaH7YFElXsp0+IwC2ngBepUtziYPlMDcx12lECQZBe?= =?us-ascii?Q?52FGy7QWCbmGFP86YId3mDigtJrpwNpYjc/QPZxhqOSKoljL57KiyZy5boqm?= =?us-ascii?Q?yG8/ahg5wlufUL1e0QPG9ui2W3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X/ihE55Hs8nlq+y+dHkRUY+P2FLiRME=; 5:W3z3+F4gdtyGQUWMmynrG6jVi7vcipR4HHUJE26UgE7+If+Aya5YKkl8dItfk8sVcatswT6xY0QGHO1ciNf0PMpbUWHZQQe7d9WImV90rY8IMr+reecsHiV23AuSQvys4u9V0E/rzLsgdB4dAxoQb3KreOz/1Dha5BN2GnOeHZc=; 24:gFw4J+CgPe1My5L2x0uz05wZEFZxgnQVZtKjjBlgwqj1lydtOQvdGsUabk2vsXag+4O+ee7eIjpPjyt5ifOWJH9KHwU9sIdZXmI+BT5KrE4=; 7:bLC9jDP7MZuIBBx9yn4xMJuhHccjUbfEV8xoXhi406m765SzrwPkCg/n32OcFUmIyHvMe5cXxQRtkur0qmZ8Apb3CP74p3rRivgJMaDCT9li6cdXzuVrNafn6j42BjLc0wzVtL2J1lOjiPNaEF2jDJaHp9sqBm6VYkhgiYjHKMiCGoEuRS/m6PLiMBcROvhWDRqPxqkCol+SecVY6fa7oOMtpmwPjAAgh+WPjxV1ea6E1S6oaR1SnOqA4Icn6sDy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR05MB2779; 20:Xhs2lQ2aj25TmVNp/I7MpeIc4NTemHRwsR8wvXRdtrx2jTQM8xJzXrIMwwlNO5vORNNhX7Rx3R5KEjkT5c+GXjc8eTsgp9c4Fpk8aDK+Lzx5KUNvU1LiVDQLPTUoUuFaXHDugwXQvIy3n+dx7B7mTApzsiSeVvqgApyLqdeTYf8= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2017 00:25:19.6276 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac64aedb-cef5-4c69-c06c-08d5428928fd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR05MB2779 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 BIT() should not be used in the UAPI header. Remove it. Signed-off-by: Bryan Tan --- include/uapi/rdma/vmw_pvrdma-abi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uapi/rdma/vmw_pvrdma-abi.h b/include/uapi/rdma/vmw_pvrdma-abi.h index aaa352f..8d37af5 100644 --- a/include/uapi/rdma/vmw_pvrdma-abi.h +++ b/include/uapi/rdma/vmw_pvrdma-abi.h @@ -52,12 +52,12 @@ #define PVRDMA_UVERBS_ABI_VERSION 3 /* ABI Version. */ #define PVRDMA_UAR_HANDLE_MASK 0x00FFFFFF /* Bottom 24 bits. */ #define PVRDMA_UAR_QP_OFFSET 0 /* QP doorbell. */ -#define PVRDMA_UAR_QP_SEND BIT(30) /* Send bit. */ -#define PVRDMA_UAR_QP_RECV BIT(31) /* Recv bit. */ +#define PVRDMA_UAR_QP_SEND (1 << 30) /* Send bit. */ +#define PVRDMA_UAR_QP_RECV (1 << 31) /* Recv bit. */ #define PVRDMA_UAR_CQ_OFFSET 4 /* CQ doorbell. */ -#define PVRDMA_UAR_CQ_ARM_SOL BIT(29) /* Arm solicited bit. */ -#define PVRDMA_UAR_CQ_ARM BIT(30) /* Arm bit. */ -#define PVRDMA_UAR_CQ_POLL BIT(31) /* Poll bit. */ +#define PVRDMA_UAR_CQ_ARM_SOL (1 << 29) /* Arm solicited bit. */ +#define PVRDMA_UAR_CQ_ARM (1 << 30) /* Arm bit. */ +#define PVRDMA_UAR_CQ_POLL (1 << 31) /* Poll bit. */ enum pvrdma_wr_opcode { PVRDMA_WR_RDMA_WRITE,