mm/init-mm.c: include <linux/mman.h> for vm_committed_as_batch
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Sat, 19 Oct 2019 03:20:24 +0000 (20:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 19 Oct 2019 10:32:32 +0000 (06:32 -0400)
commita2ae8c0551050cbf3232fbb3d963a9bbe7b57268
treefcb333a074f57aa109f03f21e81e4d4d6bede6d1
parentd0e6a5821cdf08eea91d8597dce1ad695ebeb8bc
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>
mm/init-mm.c