From: Greg Ungerer 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. Signed-off-by: Greg Ungerer Cc: David Howells Signed-off-by: Andrew Morton --- mm/nommu.c | 5 +++++ 1 files changed, 5 insertions(+) diff -puN mm/nommu.c~nommu-stub-expand_stack-for-nommu-case mm/nommu.c --- a/mm/nommu.c~nommu-stub-expand_stack-for-nommu-case +++ a/mm/nommu.c @@ -367,6 +367,11 @@ struct vm_area_struct *find_extend_vma(s 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 _