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/[email protected] Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d0e6a58 commit a2ae8c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)