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
8181 arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT
8282 arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION
8383 arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64
84−arch/x86/include/uapi/asm/mman.h:CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
8584 "
8685
8786 for c in $configs