mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
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: 742c45c3ec ("x86/elf: Enumerate kernel FSGSBASE capability in AT_HWCAP2")
Signed-off-by: Joe Richey <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
14 lines
324 B
C
14 lines
324 B
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _ASM_X86_HWCAP2_H
|
|
#define _ASM_X86_HWCAP2_H
|
|
|
|
#include <linux/const.h>
|
|
|
|
/* MONITOR/MWAIT enabled in Ring 3 */
|
|
#define HWCAP2_RING3MWAIT _BITUL(0)
|
|
|
|
/* Kernel allows FSGSBASE instructions available in Ring 3 */
|
|
#define HWCAP2_FSGSBASE _BITUL(1)
|
|
|
|
#endif
|