printf: Remove unused 'bprintf'
[drm/drm-misc.git] / arch / parisc / include / asm / mman.h
blob663f587dc78965238519ad6d965e00b0f260971f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_MMAN_H__
3 #define __ASM_MMAN_H__
5 #include <linux/fs.h>
6 #include <uapi/asm/mman.h>
8 /* PARISC cannot allow mdwe as it needs writable stacks */
9 static inline bool arch_memory_deny_write_exec_supported(void)
11 return false;
13 #define arch_memory_deny_write_exec_supported arch_memory_deny_write_exec_supported
15 static inline unsigned long arch_calc_vm_flag_bits(struct file *file, unsigned long flags)
18 * The stack on parisc grows upwards, so if userspace requests memory
19 * for a stack, mark it with VM_GROWSUP so that the stack expansion in
20 * the fault handler will work.
22 if (flags & MAP_STACK)
23 return VM_GROWSUP;
25 return 0;
27 #define arch_calc_vm_flag_bits(file, flags) arch_calc_vm_flag_bits(file, flags)
29 #endif /* __ASM_MMAN_H__ */