Commit 35f2c2f6f6ae13ef23c4f68e6d3073753077ca43

Authored by Paul Mundt
Committed by James Morris
1 parent c3fa109a58

nommu: Provide mmap_min_addr definition.

With the "security: use mmap_min_addr indepedently of security models"
change, mmap_min_addr is used in common areas, which susbsequently blows
up the nommu build. This stubs in the definition in the nommu case as
well.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

--

 mm/nommu.c |    3 +++
 1 file changed, 3 insertions(+)
Signed-off-by: James Morris <jmorris@namei.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -69,6 +69,9 @@
69 69 int sysctl_nr_trim_pages = CONFIG_NOMMU_INITIAL_TRIM_EXCESS;
70 70 int heap_stack_gap = 0;
71 71  
  72 +/* amount of vm to protect from userspace access */
  73 +unsigned long mmap_min_addr = CONFIG_DEFAULT_MMAP_MIN_ADDR;
  74 +
72 75 atomic_long_t mmap_pages_allocated;
73 76  
74 77 EXPORT_SYMBOL(mem_map);