File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,6 @@ static inline void vm_unacct_memory(long pages)
93
93
#define arch_calc_vm_flag_bits (flags ) 0
94
94
#endif
95
95
96
- #ifndef arch_vm_get_page_prot
97
- #define arch_vm_get_page_prot (vm_flags ) __pgprot(0)
98
- #endif
99
-
100
96
#ifndef arch_validate_prot
101
97
/*
102
98
* This is called from mprotect(). PROT_GROWSDOWN and PROT_GROWSUP have
Original file line number Diff line number Diff line change @@ -123,9 +123,7 @@ pgprot_t protection_map[16] __ro_after_init = {
123
123
#ifndef CONFIG_ARCH_HAS_VM_GET_PAGE_PROT
124
124
pgprot_t vm_get_page_prot (unsigned long vm_flags )
125
125
{
126
- return __pgprot (pgprot_val (protection_map [vm_flags &
127
- (VM_READ |VM_WRITE |VM_EXEC |VM_SHARED )]) |
128
- pgprot_val (arch_vm_get_page_prot (vm_flags )));
126
+ return protection_map [vm_flags & (VM_READ |VM_WRITE |VM_EXEC |VM_SHARED )];
129
127
}
130
128
EXPORT_SYMBOL (vm_get_page_prot );
131
129
#endif /* CONFIG_ARCH_HAS_VM_GET_PAGE_PROT */
You can’t perform that action at this time.
0 commit comments