summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>2019-10-19 05:20:24 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-10-19 12:32:32 +0200
commita2ae8c0551050cbf3232fbb3d963a9bbe7b57268 (patch)
treefcb333a074f57aa109f03f21e81e4d4d6bede6d1 /mm
parentmm/filemap.c: include <linux/ramfs.h> for generic_file_vm_ops definition (diff)
downloadlinux-a2ae8c0551050cbf3232fbb3d963a9bbe7b57268.tar.xz
linux-a2ae8c0551050cbf3232fbb3d963a9bbe7b57268.zip
mm/init-mm.c: include <linux/mman.h> for vm_committed_as_batch
mm_init.c needs to include <linux/mman.h> for the definition of vm_committed_as_batch. Fixes the following sparse warning: mm/mm_init.c:141:5: warning: symbol 'vm_committed_as_batch' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20191016091509.26708-1-ben.dooks@codethink.co.uk Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/init-mm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/init-mm.c b/mm/init-mm.c
index fb1e15028ef0..19603302a77f 100644
--- a/mm/init-mm.c
+++ b/mm/init-mm.c
@@ -5,6 +5,7 @@
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/cpumask.h>
+#include <linux/mman.h>
#include <linux/atomic.h>
#include <linux/user_namespace.h>