* [PATCH] mm: include <linux/mman.h> for vm_committed_as_batch
@ 2019-10-16 9:15 Ben Dooks (Codethink)
0 siblings, 0 replies; only message in thread
From: Ben Dooks (Codethink) @ 2019-10-16 9:15 UTC (permalink / raw)
To: linux-kernel; +Cc: Ben Dooks (Codethink), Andrew Morton, linux-mm, linux-kernel
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
---
mm/init-mm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/init-mm.c b/mm/init-mm.c
index fb1e15028ef0..19603302a77f 100644
--- a/mm/init-mm.c
+++ b/mm/init-mm.c
@@ -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>
--
2.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-16 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 9:15 [PATCH] mm: include <linux/mman.h> for vm_committed_as_batch Ben Dooks (Codethink)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox