History

x86: Remove the arch_calc_vm_prot_bits() macro from the UAPI

The arch_calc_vm_prot_bits() macro uses VM_PKEY_BIT0 etc. which are not part of the UAPI, so the macro is completely useless for userspace. It is also hidden behind the CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS config switch which we shouldn't expose to userspace. Thus let's move this macro into a new internal header instead.

Thomas Huth committed 3 years ago

Commit 659df861 parent 65e71083 files · +15 −9Browse files

Showing the changes to scripts (1 of 3 files). Show all

Unified · Split

scripts/headers_install.sh+0−1
@@ -81,7 +81,6 @@ arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO · 80 unmodified lines
81arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT81arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT
82arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION82arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION
83arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_6483arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64
84arch/x86/include/uapi/asm/mman.h:CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
85"84"
86 85
87for c in $configs86for c in $configs