projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d07f6ca
)
x86/elf: Use _BITUL() macro in UAPI headers
author
Joe Richey
<joerichey@google.com>
Fri, 21 May 2021 08:58:42 +0000
(
01:58
-0700)
committer
Borislav Petkov
<bp@suse.de>
Fri, 21 May 2021 09:12:52 +0000
(11:12 +0200)
Replace BIT() in x86's UAPI header with _BITUL(). BIT() is not defined
in the UAPI headers and its usage may cause userspace build errors.
Fixes:
742c45c3ecc9
("x86/elf: Enumerate kernel FSGSBASE capability in AT_HWCAP2")
Signed-off-by: Joe Richey <joerichey@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link:
https://lkml.kernel.org/r/20210521085849.37676-2-joerichey94@gmail.com
arch/x86/include/uapi/asm/hwcap2.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/uapi/asm/hwcap2.h
b/arch/x86/include/uapi/asm/hwcap2.h
index
5fdfcb4
..
054604a
100644
(file)
--- a/
arch/x86/include/uapi/asm/hwcap2.h
+++ b/
arch/x86/include/uapi/asm/hwcap2.h
@@
-2,10
+2,12
@@
#ifndef _ASM_X86_HWCAP2_H
#define _ASM_X86_HWCAP2_H
+#include <linux/const.h>
+
/* MONITOR/MWAIT enabled in Ring 3 */
-#define HWCAP2_RING3MWAIT
(1 <<
0)
+#define HWCAP2_RING3MWAIT
_BITUL(
0)
/* Kernel allows FSGSBASE instructions available in Ring 3 */
-#define HWCAP2_FSGSBASE
BIT
(1)
+#define HWCAP2_FSGSBASE
_BITUL
(1)
#endif