[PATCH 1/2] x86/sgx: Revert using BIT() to define ENCLS_FAULT_FLAG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sean.j.christopherson@xxxxxxxxx>
---
 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




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux