diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3f1fafc0245e..c643016499a1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
5 | #include <linux/errno.h> | 5 | #include <linux/errno.h> |
6 | #include <linux/capability.h> | ||
6 | 7 | ||
7 | #ifdef __KERNEL__ | 8 | #ifdef __KERNEL__ |
8 | 9 | ||
@@ -1027,7 +1028,7 @@ kernel_map_pages(struct page *page, int numpages, int enable) | |||
1027 | { | 1028 | { |
1028 | if (!PageHighMem(page) && !enable) | 1029 | if (!PageHighMem(page) && !enable) |
1029 | mutex_debug_check_no_locks_freed(page_address(page), | 1030 | mutex_debug_check_no_locks_freed(page_address(page), |
1030 | page_address(page + numpages)); | 1031 | numpages * PAGE_SIZE); |
1031 | } | 1032 | } |
1032 | #endif | 1033 | #endif |
1033 | 1034 | ||