From patchwork Wed Dec 20 19:27:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Tan X-Patchwork-Id: 10126455 X-Patchwork-Delegate: jgg@ziepe.ca 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 B4EEB60390 for ; Wed, 20 Dec 2017 19:27:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A460029629 for ; Wed, 20 Dec 2017 19:27:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 994EE296DD; Wed, 20 Dec 2017 19:27:57 +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 0B71B29629 for ; Wed, 20 Dec 2017 19:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbdLTT1y (ORCPT ); Wed, 20 Dec 2017 14:27:54 -0500 Received: from mail-by2nam01on0048.outbound.protection.outlook.com ([104.47.34.48]:45402 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932478AbdLTT1j (ORCPT ); Wed, 20 Dec 2017 14:27:39 -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=0g+KOna1iBKCbGpncFlpD4BsyBu5z8RfrXUWceTz76w=; b=N2OHzgKzh974Gx6gBBQDExr43tV3KKS7bleCpnwxZe+vMd95gS0U0RE3dBtdFl8CInfO6B9XIY9sNDtYJLJ1OFPcihIa4w1QN3klyEQAtCOdXVewKjF/dUfXOo3U5tGS5ufpA4CNvZUMLgUNsKv1xp21fmYNef6EAs6hTt+zpXE= Received: from bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com (208.91.1.34) by CO2PR05MB2773.namprd05.prod.outlook.com (10.166.200.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.2; Wed, 20 Dec 2017 19:27:36 +0000 Date: Wed, 20 Dec 2017 11:27:28 -0800 From: Bryan Tan To: linux-rdma@vger.kernel.org Subject: [PATCH for-next 4/4] RDMA/vmw_pvrdma: Remove usage of BIT() from UAPI header Message-ID: <20171220192721.GA32622@bryantan-devbox.prom.eng.vmware.com.prom.eng.vmware.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171220192305.GA28403@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: MWHPR17CA0078.namprd17.prod.outlook.com (10.173.237.144) To CO2PR05MB2773.namprd05.prod.outlook.com (10.166.200.25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aaa570f4-0a17-4ac3-87c8-08d547dfba03 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CO2PR05MB2773; X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2773; 3:FrzQIH+n0MfU4GhEQviou6VOYXWa6L4JlK3cLUVu2dohDQ1lbifSUgZrDEh4xBctio7cTaH6fEy8v3lR7zSGNTQlQi9IV28JiHJtxxnBPWOHNbtNq0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89hF8EbT8H+cXMxTU6w/byXHKoH+zQN6dmBfHlsyK/v79GUNh+TPu+EBLWmsIC10T1RH7kKMtggEukX2Br/9+AjtQ7RAmaKkUVyhZ3ZhDIZMQu+3co+wUyYidVXXND40Sa4EQbRsKsVT52J4Gr+2PKaqkXw8BY05QFu52+7yb3Iro8NDonKea1QuikuVTjk5bkGnq1LQdWURXww1YfHgyr142BIop+ivJ46eMG4/7BZD; 4:M64PNPy6Cc3ubwT76GkmBVfY+4OWZ6XGxGYGY7V3NXYN58gfu8moBGjlqNAUoOi0J5VlqJGaqQo5wstzXwea2ggesAXS0hKgAB4C8TZ8ml3NOR6WbwHc+dnnAOkQhbELaJ2MDE+dP2KcSHxlR6nu8ZKxFWGpYkeDzFvk8OAgvkaOF6Hitx8Bpv7SbTL+zSfGsgIq11IOPACwSK3euIFt8A9yxbwxicEG1p2L9CdVP+vsiGp8+rvHiD9e3ugmjXd0O327fa7c/ez1ORrfUNtfQO746Lal5YdlALyJuUz6Xsp+R4IR/7F4fxXoK7xJ7h2F X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(93006095)(93001095)(10201501046)(3002001)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CO2PR05MB2773; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CO2PR05MB2773; X-Forefront-PRVS: 0527DFA348 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(39380400002)(396003)(366004)(376002)(189003)(199004)(105586002)(52116002)(7696005)(305945005)(97736004)(8676002)(7736002)(6916009)(2950100002)(33656002)(5660300001)(47776003)(2361001)(66066001)(81166006)(6666003)(386003)(81156014)(2906002)(6116002)(86362001)(53936002)(50466002)(83506002)(55016002)(68736007)(16586007)(25786009)(16526018)(478600001)(2351001)(316002)(106356001)(23726003)(8936002)(58126008)(575784001)(3846002)(1076002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR05MB2773; 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) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bryantan@vmware.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR05MB2773; 23:9MvQVOzbDRJaE1jLHaxHmKmJYd9YxoleVaPeC3osU?= =?us-ascii?Q?JLSQvAdnN6lBjDfG604OIneHpFSS6ZGn7cgWug0oUX2/+9vvYXhTCdQJycud?= =?us-ascii?Q?n9vlrHiFklfE5hW7dhaIr6y0gTI/qdVKo3c+kxn/LEp+S/BNSq/LbFMTi1JM?= =?us-ascii?Q?vACiEEZ7OlIJJ8PnVg1l7eo9FjnHtGHVFVYshjLs9RP+xNblNr3dKheKUcjd?= =?us-ascii?Q?Tyd2eIziyNAUPIvYdpnIQG7Upfsrj415N1qLqmsjmn3LepG48iExxynb5PUW?= =?us-ascii?Q?ZY4cuI/vJxjfQePOtHGRrXDQejkA9vOrGFeoiYR3UJQG6bPCYwh9Pw99Y/oJ?= =?us-ascii?Q?cp6ypkajpc6W0zVvK3lni6tSgrIauLkBci2r5QNYELD0T8b9/ihVJuxJbouI?= =?us-ascii?Q?/4GySUA5tHxScs26A+j0/MHn9AisKAKAUI4skDefgqq3XZ47kdzQx8YdyLFY?= =?us-ascii?Q?cj5lOWTiM1i5Vb2PZ9ajoUTcVVXmMTZveDAwczNdPNXFg0H5G0o2vce1j4bT?= =?us-ascii?Q?vwEepY2YHvG2I//Sze2nA2F5GvaNl+PgxPwFWuZ8dbDqhXINTpL2oZTloRtj?= =?us-ascii?Q?p0RQnuHYH3Ed3ydzFE5tvESSNJQkBK57bI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eAa81o9BS0+jGbvLcaDjb2gA91oltJFRBrvY9RconfUTYRYiEDa88hEMl1dYFisrFWjsw5t9Ueqre7Opoo9A6e9z9a7dcjLUIQWNU8LdwfzQAYUniZv7UHJBIxiMM5HgVwG5Is1980U/iewAqC3U=; 24:cDbN3RpKIQh51C53Bq39YuYg0ks0C+gYNVaPSPKqY7dX5HXsi5QrFElAvvZKz7h7WywXottTYSD9iKICNQDkx9kLXDBMwB0VnDkXimiIKYs=; 7:/xoOf068HzOcSjHPJshjMDIc0y7RyQ/oSJ0gl7JoVKwX5R4qn+B+Jf+UGZu3xie91cCJFLfSyJGO6nbYMzAA7X9Xjw6XD+tj4cd2Za1eqr/zuA88L+vb+H89o4TrIITSNfyCAHTMlft1dt8a4CyTS37X8w525/epeKo1cA/vtvKD0pWmXYfDKtcj5QTR5ziHKHZUcmPkE/8lEat/dM7a+wJIE2AU45IQLlCPcFqqOmx8lHx6Idkhm6SNHPKNVXse SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR05MB2773; 20:ndUhCuoxSt/EqFrLlk7nvi6NLyaoHKfzJ3zuR3QeqxLzUuGljlFgSK0vuNTj0S1mbZC+5kLFVypoA+Qyh9z7fJdwKZ/c7MS//9BKuOWAoCM+tyi1TsCmqO+6iCbV9oGFcwnp2psVF7dAkETo+jPNOZ7yQ40DjGM4n5JOmcmCr/I= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 19:27:36.5147 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aaa570f4-0a17-4ac3-87c8-08d547dfba03 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR05MB2773 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/uapi/rdma/vmw_pvrdma-abi.h b/include/uapi/rdma/vmw_pvrdma-abi.h index 4007cac..02ca0d0 100644 --- a/include/uapi/rdma/vmw_pvrdma-abi.h +++ b/include/uapi/rdma/vmw_pvrdma-abi.h @@ -52,14 +52,14 @@ #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. */ #define PVRDMA_UAR_SRQ_OFFSET 8 /* SRQ doorbell. */ -#define PVRDMA_UAR_SRQ_RECV BIT(30) /* Recv bit. */ +#define PVRDMA_UAR_SRQ_RECV (1 << 30) /* Recv bit. */ enum pvrdma_wr_opcode { PVRDMA_WR_RDMA_WRITE,