/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_MMAN_H__ #define __ASM_MMAN_H__ #include #include #include #include static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, unsigned long pkey __always_unused) { unsigned long ret = 0; /* * If PROT_WRITE was specified, force it to VM_READ | VM_WRITE. * Only VM_WRITE means shadow stack. */ if (prot & PROT_WRITE) ret = (VM_READ | VM_WRITE); return ret; } #define arch_calc_vm_prot_bits(prot, pkey) arch_calc_vm_prot_bits(prot, pkey) #endif /* ! __ASM_MMAN_H__ */