Skip to content

Commit

Permalink
mm/init-mm.c: include <linux/mman.h> for vm_committed_as_batch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks (Codethink) authored and Linus Torvalds committed Oct 19, 2019
1 parent d0e6a58 commit a2ae8c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/init-mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a2ae8c0

Please sign in to comment.