diff options
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/mm_hooks.h | 17 | ||||
-rw-r--r-- | include/asm-generic/mmu_context.h | 6 |
2 files changed, 14 insertions, 9 deletions
diff --git a/include/asm-generic/mm_hooks.h b/include/asm-generic/mm_hooks.h index 67dea8123683..866aa461efa5 100644 --- a/include/asm-generic/mm_hooks.h +++ b/include/asm-generic/mm_hooks.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Define generic no-op hooks for arch_dup_mmap and arch_exit_mmap, to | 2 | * Define generic no-op hooks for arch_dup_mmap, arch_exit_mmap |
3 | * be included in asm-FOO/mmu_context.h for any arch FOO which doesn't | 3 | * and arch_unmap to be included in asm-FOO/mmu_context.h for any |
4 | * need to hook these. | 4 | * arch FOO which doesn't need to hook these. |
5 | */ | 5 | */ |
6 | #ifndef _ASM_GENERIC_MM_HOOKS_H | 6 | #ifndef _ASM_GENERIC_MM_HOOKS_H |
7 | #define _ASM_GENERIC_MM_HOOKS_H | 7 | #define _ASM_GENERIC_MM_HOOKS_H |
@@ -15,4 +15,15 @@ static inline void arch_exit_mmap(struct mm_struct *mm) | |||
15 | { | 15 | { |
16 | } | 16 | } |
17 | 17 | ||
18 | static inline void arch_unmap(struct mm_struct *mm, | ||
19 | struct vm_area_struct *vma, | ||
20 | unsigned long start, unsigned long end) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | static inline void arch_bprm_mm_init(struct mm_struct *mm, | ||
25 | struct vm_area_struct *vma) | ||
26 | { | ||
27 | } | ||
28 | |||
18 | #endif /* _ASM_GENERIC_MM_HOOKS_H */ | 29 | #endif /* _ASM_GENERIC_MM_HOOKS_H */ |
diff --git a/include/asm-generic/mmu_context.h b/include/asm-generic/mmu_context.h index aa2d8ba35b20..1f2a8f9c9264 100644 --- a/include/asm-generic/mmu_context.h +++ b/include/asm-generic/mmu_context.h | |||
@@ -47,10 +47,4 @@ static inline void arch_bprm_mm_init(struct mm_struct *mm, | |||
47 | { | 47 | { |
48 | } | 48 | } |
49 | 49 | ||
50 | static inline void arch_unmap(struct mm_struct *mm, | ||
51 | struct vm_area_struct *vma, | ||
52 | unsigned long start, unsigned long end) | ||
53 | { | ||
54 | } | ||
55 | |||
56 | #endif /* __ASM_GENERIC_MMU_CONTEXT_H */ | 50 | #endif /* __ASM_GENERIC_MMU_CONTEXT_H */ |