Skip to contentSkip to conversation

nommu: stub expand_stack() for nommu case

PATCH New Greg Ungerer 1 participant 1 message Jun 1, 2007

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

PATCH 1/1 nommu: stub expand_stack() for nommu case

Be consistent with VM mmap, implement expand_stack(). We can't actually do anything other than return an error in the no MMU case though.

mm/nommu.c +5 -0
diff -Naur linux-2.6.21/mm/nommu.c linux-2.6.21-uc0/mm/nommu.c
@@ -359,6 +359,11 @@
 	return find_vma(mm, addr);
 }
 
+int expand_stack(struct vm_area_struct *vma, unsigned long address)
+{
+	return -ENOMEM;
+}
+
 /*
  * look up the first VMA exactly that exactly matches addr
  * - should be called with mm->mmap_sem at least held readlocked