Skip to content

Commit a2ae8c0

Browse files
bjdooks-cttorvalds
authored andcommitted
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>
1 parent d0e6a58 commit a2ae8c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎mm/init-mm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <linux/spinlock.h>
66
#include <linux/list.h>
77
#include <linux/cpumask.h>
8+
#include <linux/mman.h>
89

910
#include <linux/atomic.h>
1011
#include <linux/user_namespace.h>

0 commit comments

Comments
 (0)