Skip to contentSkip to conversation

mm: include <linux/mman.h> for vm_committed_as_batch

PATCH New Ben Dooks (Codethink) 1 participant 1 message Oct 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: 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?

---
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Cc: [email protected]

---
 mm/init-mm.c | 1 +
 1 file changed, 1 insertion(+)
mm/init-mm.c +1 -0
index fb1e15028ef0..19603302a77f 100644
@@ -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>
Signature · 1 line
2.23.0