[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20201026171835.7412-1-thiago.macieira@intel.com>
Date: Mon, 26 Oct 2020 10:18:35 -0700
From: Thiago Macieira <thiago.macieira@...el.com>
To: linux-kernel@...r.kernel.org, Sasha Levin <sashal@...nel.org>,
tglx@...utronix.de, luto@...nel.org,
Andi Kleen <ak@...ux.intel.com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>, corbet@....net,
mingo@...hat.com, bp@...en8.de, x86@...nel.org, shuah@...nel.org,
gregkh@...uxfoundation.org, tony.luck@...el.com,
chang.seok.bae@...el.com
Subject: [PATCH] x86/elf: Fix use of internal macro BIT in uapi header
This breaks the build in userspace since this macro is not available.
<stdin>:1:18: error: ‘BIT’ was not declared in this scope
Fixes: 742c45c3ecc9255e1 ("x86/elf: Enumerate kernel FSGSBASE capability in AT_HWCAP2")
Cc: Andi Kleen <ak@...ux.intel.com>
Acked-by: Dave Hansen <dave.hansen@...ux.intel.com>
Signed-off-by: Thiago Macieira <thiago.macieira@...el.com>
---
arch/x86/include/uapi/asm/hwcap2.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/uapi/asm/hwcap2.h b/arch/x86/include/uapi/asm/hwcap2.h
index 5fdfcb47000f..6d2175b43710 100644
--- a/arch/x86/include/uapi/asm/hwcap2.h
+++ b/arch/x86/include/uapi/asm/hwcap2.h
@@ -6,6 +6,6 @@
#define HWCAP2_RING3MWAIT (1 << 0)
/* Kernel allows FSGSBASE instructions available in Ring 3 */
-#define HWCAP2_FSGSBASE BIT(1)
+#define HWCAP2_FSGSBASE (1 << 1)
#endif
--
2.29.0
Powered by blists - more mailing lists