Merge tag 'for-5.19/block-2022-06-02' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / include / linux / sched / mm.h
index 1ad1f4b..8cd975a 100644 (file)
@@ -137,7 +137,7 @@ static inline void mm_update_next_owner(struct mm_struct *mm)
 
 #ifdef CONFIG_MMU
 #ifndef arch_get_mmap_end
-#define arch_get_mmap_end(addr)        (TASK_SIZE)
+#define arch_get_mmap_end(addr, len, flags)    (TASK_SIZE)
 #endif
 
 #ifndef arch_get_mmap_base
@@ -153,6 +153,15 @@ extern unsigned long
 arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
                          unsigned long len, unsigned long pgoff,
                          unsigned long flags);
+
+unsigned long
+generic_get_unmapped_area(struct file *filp, unsigned long addr,
+                         unsigned long len, unsigned long pgoff,
+                         unsigned long flags);
+unsigned long
+generic_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
+                                 unsigned long len, unsigned long pgoff,
+                                 unsigned long flags);
 #else
 static inline void arch_pick_mmap_layout(struct mm_struct *mm,
                                         struct rlimit *rlim_stack) {}