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.
Showing the changes to scripts (1 of 3 files). Show all
Unified · Split
| @@ -81,7 +81,6 @@ arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_NO · 80 unmodified lines | ||
| 81 | 81 | arch/nios2/include/uapi/asm/swab.h:CONFIG_NIOS2_CI_SWAB_SUPPORT |
| 82 | 82 | arch/x86/include/uapi/asm/auxvec.h:CONFIG_IA32_EMULATION |
| 83 | 83 | arch/x86/include/uapi/asm/auxvec.h:CONFIG_X86_64 |
| 84 | −arch/x86/include/uapi/asm/mman.h:CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS | |
| 85 | 84 | " |
| 86 | 85 | |
| 87 | 86 | for c in $configs |