diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-10-15 13:44:56 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-15 07:59:15 -0700 |
commit | 325adeb55e32c50055c654e5b06a49f0bd88420b (patch) | |
tree | d3e2d2a9acdd786d23ab0187133b8cd5f962e339 /mm | |
parent | 68687c842caefd5386d47a571fb4725df3556891 (diff) | |
download | linux-325adeb55e32c50055c654e5b06a49f0bd88420b.tar.gz linux-325adeb55e32c50055c654e5b06a49f0bd88420b.tar.bz2 linux-325adeb55e32c50055c654e5b06a49f0bd88420b.zip |
mm: huge_memory: Fix build error.
Certain configurations won't implicitly pull in <linux/pagemap.h> resulting
in the following build error:
mm/huge_memory.c: In function 'release_pte_page':
mm/huge_memory.c:1697:2: error: implicit declaration of function 'unlock_page' [-Werror=implicit-function-declaration]
mm/huge_memory.c: In function '__collapse_huge_page_isolate':
mm/huge_memory.c:1757:3: error: implicit declaration of function 'trylock_page' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
Reported-by: David Daney <david.daney@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/huge_memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c index a863af26c79c..40f17c34b415 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -17,6 +17,7 @@ #include <linux/khugepaged.h> #include <linux/freezer.h> #include <linux/mman.h> +#include <linux/pagemap.h> #include <asm/tlb.h> #include <asm/pgalloc.h> #include "internal.h" |