From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4694AECE58E for ; Tue, 8 Oct 2019 04:12:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2716820867 for ; Tue, 8 Oct 2019 04:12:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729972AbfJHEM1 (ORCPT ); Tue, 8 Oct 2019 00:12:27 -0400 Received: from mga03.intel.com ([134.134.136.65]:1148 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729897AbfJHEM1 (ORCPT ); Tue, 8 Oct 2019 00:12:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2019 21:12:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,269,1566889200"; d="scan'208";a="197581665" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.41]) by orsmga006.jf.intel.com with ESMTP; 07 Oct 2019 21:12:27 -0700 From: Sean Christopherson To: Jarkko Sakkinen Cc: linux-sgx@vger.kernel.org Subject: [PATCH 1/2] x86/sgx: Revert using BIT() to define ENCLS_FAULT_FLAG Date: Mon, 7 Oct 2019 21:12:25 -0700 Message-Id: <20191008041226.2974-2-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191008041226.2974-1-sean.j.christopherson@intel.com> References: <20191008041226.2974-1-sean.j.christopherson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-sgx-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org ENCLS_FAULT_FLAG is run through __stringify() in the ENCLS asm helpers, the build fails miserably if its defined via BIT(). Signed-off-by: Sean Christopherson --- arch/x86/kernel/cpu/sgx/encls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/sgx/encls.h b/arch/x86/kernel/cpu/sgx/encls.h index f286ba85773e..1676571c8a59 100644 --- a/arch/x86/kernel/cpu/sgx/encls.h +++ b/arch/x86/kernel/cpu/sgx/encls.h @@ -60,7 +60,7 @@ enum sgx_encls_leaf { * between positive (faults and SGX error codes) and negative (system * error codes) values. */ -#define ENCLS_FAULT_FLAG BIT(30) +#define ENCLS_FAULT_FLAG 0x40000000 /* Retrieve the encoded trapnr from the specified return code. */ #define ENCLS_TRAPNR(r) ((r) & ~ENCLS_FAULT_FLAG) -- 2.22.0