diff options
author | Ben Dooks (Codethink) <ben.dooks@codethink.co.uk> | 2019-10-18 20:20:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-19 06:32:32 -0400 |
commit | a2ae8c0551050cbf3232fbb3d963a9bbe7b57268 (patch) | |
tree | fcb333a074f57aa109f03f21e81e4d4d6bede6d1 /mm/init-mm.c | |
parent | d0e6a5821cdf08eea91d8597dce1ad695ebeb8bc (diff) | |
download | linux-stable-a2ae8c0551050cbf3232fbb3d963a9bbe7b57268.tar.gz linux-stable-a2ae8c0551050cbf3232fbb3d963a9bbe7b57268.tar.bz2 linux-stable-a2ae8c0551050cbf3232fbb3d963a9bbe7b57268.zip |
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>
Diffstat (limited to 'mm/init-mm.c')
-rw-r--r-- | mm/init-mm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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> |