aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/userfaultfd_k.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/userfaultfd_k.h')
-rw-r--r--include/linux/userfaultfd_k.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h
index 79002bca1f43..7f318a46044b 100644
--- a/include/linux/userfaultfd_k.h
+++ b/include/linux/userfaultfd_k.h
@@ -55,6 +55,12 @@ static inline bool userfaultfd_armed(struct vm_area_struct *vma)
55extern int dup_userfaultfd(struct vm_area_struct *, struct list_head *); 55extern int dup_userfaultfd(struct vm_area_struct *, struct list_head *);
56extern void dup_userfaultfd_complete(struct list_head *); 56extern void dup_userfaultfd_complete(struct list_head *);
57 57
58extern void mremap_userfaultfd_prep(struct vm_area_struct *,
59 struct vm_userfaultfd_ctx *);
60extern void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx,
61 unsigned long from, unsigned long to,
62 unsigned long len);
63
58#else /* CONFIG_USERFAULTFD */ 64#else /* CONFIG_USERFAULTFD */
59 65
60/* mm helpers */ 66/* mm helpers */
@@ -89,6 +95,17 @@ static inline void dup_userfaultfd_complete(struct list_head *l)
89{ 95{
90} 96}
91 97
98static inline void mremap_userfaultfd_prep(struct vm_area_struct *vma,
99 struct vm_userfaultfd_ctx *ctx)
100{
101}
102
103static inline void mremap_userfaultfd_complete(struct vm_userfaultfd_ctx ctx,
104 unsigned long from,
105 unsigned long to,
106 unsigned long len)
107{
108}
92#endif /* CONFIG_USERFAULTFD */ 109#endif /* CONFIG_USERFAULTFD */
93 110
94#endif /* _LINUX_USERFAULTFD_K_H */ 111#endif /* _LINUX_USERFAULTFD_K_H */