diff options
-rw-r--r-- | include/linux/mm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 7cf955feb823..6e79b3df1582 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1405,7 +1405,11 @@ extern void pagefault_out_of_memory(void); | |||
1405 | 1405 | ||
1406 | extern void show_free_areas(unsigned int flags, nodemask_t *nodemask); | 1406 | extern void show_free_areas(unsigned int flags, nodemask_t *nodemask); |
1407 | 1407 | ||
1408 | #ifdef CONFIG_MMU | ||
1408 | extern bool can_do_mlock(void); | 1409 | extern bool can_do_mlock(void); |
1410 | #else | ||
1411 | static inline bool can_do_mlock(void) { return false; } | ||
1412 | #endif | ||
1409 | extern int user_shm_lock(size_t, struct user_struct *); | 1413 | extern int user_shm_lock(size_t, struct user_struct *); |
1410 | extern void user_shm_unlock(size_t, struct user_struct *); | 1414 | extern void user_shm_unlock(size_t, struct user_struct *); |
1411 | 1415 | ||