kfence: test: fail fast if disabled at boot
[linux-2.6-microblaze.git] / mm / mmap.c
index aa9de98..ca54d36 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1352,9 +1352,8 @@ static inline unsigned long round_hint_to_min(unsigned long hint)
        return hint;
 }
 
-static inline int mlock_future_check(struct mm_struct *mm,
-                                    unsigned long flags,
-                                    unsigned long len)
+int mlock_future_check(struct mm_struct *mm, unsigned long flags,
+                      unsigned long len)
 {
        unsigned long locked, lock_limit;