Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/mm: use generic mm_hooks

With git commit 3446c13b268af86391d06611327006b059b8bab1
"s390/mm: four page table levels vs. fork"
s390 dropped its architecture specific version of arch_dup_mmap.

Now all functions defined by include/asm-generic/mm_hooks.h are
identical to the s390 versions. Use the generic header.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

+1 -26
+1 -26
arch/s390/include/asm/mmu_context.h
··· 12 12 #include <linux/mm_types.h> 13 13 #include <asm/tlbflush.h> 14 14 #include <asm/ctl_reg.h> 15 + #include <asm-generic/mm_hooks.h> 15 16 16 17 static inline int init_new_context(struct task_struct *tsk, 17 18 struct mm_struct *mm) ··· 134 133 set_user_asce(next); 135 134 } 136 135 137 - static inline void arch_dup_mmap(struct mm_struct *oldmm, 138 - struct mm_struct *mm) 139 - { 140 - } 141 - 142 - static inline void arch_exit_mmap(struct mm_struct *mm) 143 - { 144 - } 145 - 146 - static inline void arch_unmap(struct mm_struct *mm, 147 - struct vm_area_struct *vma, 148 - unsigned long start, unsigned long end) 149 - { 150 - } 151 - 152 - static inline void arch_bprm_mm_init(struct mm_struct *mm, 153 - struct vm_area_struct *vma) 154 - { 155 - } 156 - 157 - static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, 158 - bool write, bool execute, bool foreign) 159 - { 160 - /* by default, allow everything */ 161 - return true; 162 - } 163 136 #endif /* __S390_MMU_CONTEXT_H */