diff options
Diffstat (limited to 'include/linux/userfaultfd_k.h')
-rw-r--r-- | include/linux/userfaultfd_k.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h index 0468548acebf..48a3483dccb1 100644 --- a/include/linux/userfaultfd_k.h +++ b/include/linux/userfaultfd_k.h | |||
@@ -61,8 +61,7 @@ extern void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *, | |||
61 | unsigned long from, unsigned long to, | 61 | unsigned long from, unsigned long to, |
62 | unsigned long len); | 62 | unsigned long len); |
63 | 63 | ||
64 | extern void userfaultfd_remove(struct vm_area_struct *vma, | 64 | extern bool userfaultfd_remove(struct vm_area_struct *vma, |
65 | struct vm_area_struct **prev, | ||
66 | unsigned long start, | 65 | unsigned long start, |
67 | unsigned long end); | 66 | unsigned long end); |
68 | 67 | ||
@@ -72,8 +71,6 @@ extern int userfaultfd_unmap_prep(struct vm_area_struct *vma, | |||
72 | extern void userfaultfd_unmap_complete(struct mm_struct *mm, | 71 | extern void userfaultfd_unmap_complete(struct mm_struct *mm, |
73 | struct list_head *uf); | 72 | struct list_head *uf); |
74 | 73 | ||
75 | extern void userfaultfd_exit(struct mm_struct *mm); | ||
76 | |||
77 | #else /* CONFIG_USERFAULTFD */ | 74 | #else /* CONFIG_USERFAULTFD */ |
78 | 75 | ||
79 | /* mm helpers */ | 76 | /* mm helpers */ |
@@ -120,11 +117,11 @@ static inline void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx *ctx, | |||
120 | { | 117 | { |
121 | } | 118 | } |
122 | 119 | ||
123 | static inline void userfaultfd_remove(struct vm_area_struct *vma, | 120 | static inline bool userfaultfd_remove(struct vm_area_struct *vma, |
124 | struct vm_area_struct **prev, | ||
125 | unsigned long start, | 121 | unsigned long start, |
126 | unsigned long end) | 122 | unsigned long end) |
127 | { | 123 | { |
124 | return true; | ||
128 | } | 125 | } |
129 | 126 | ||
130 | static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, | 127 | static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, |
@@ -139,10 +136,6 @@ static inline void userfaultfd_unmap_complete(struct mm_struct *mm, | |||
139 | { | 136 | { |
140 | } | 137 | } |
141 | 138 | ||
142 | static inline void userfaultfd_exit(struct mm_struct *mm) | ||
143 | { | ||
144 | } | ||
145 | |||
146 | #endif /* CONFIG_USERFAULTFD */ | 139 | #endif /* CONFIG_USERFAULTFD */ |
147 | 140 | ||
148 | #endif /* _LINUX_USERFAULTFD_K_H */ | 141 | #endif /* _LINUX_USERFAULTFD_K_H */ |