summaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2019-10-18 20:20:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-10-19 06:32:32 -0400
commit444f84fd2ac7bae36f3dd3ce1d39d11211c2c72a (patch)
tree2edbdc40dc7d049e15d57e1498dda4e52d01c23e /mm/rmap.c
parentf7daefe4231e57381d92c2e2ad905a899c28e402 (diff)
downloadlinux-stable-444f84fd2ac7bae36f3dd3ce1d39d11211c2c72a.tar.gz
linux-stable-444f84fd2ac7bae36f3dd3ce1d39d11211c2c72a.tar.bz2
linux-stable-444f84fd2ac7bae36f3dd3ce1d39d11211c2c72a.zip
mm: include <linux/huge_mm.h> for is_vma_temporary_stack
Include <linux/huge_mm.h> for the definition of is_vma_temporary_stack to fix the following sparse warning: mm/rmap.c:1673:6: warning: symbol 'is_vma_temporary_stack' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20191009151155.27763-1-ben.dooks@codethink.co.uk Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Qian Cai <cai@lca.pw> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index d9a23bb773bf..0c7b2a9400d4 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -61,6 +61,7 @@
#include <linux/mmu_notifier.h>
#include <linux/migrate.h>
#include <linux/hugetlb.h>
+#include <linux/huge_mm.h>
#include <linux/backing-dev.h>
#include <linux/page_idle.h>
#include <linux/memremap.h>