diff options
author | Greg Ungerer <gerg@snapgear.com> | 2007-07-16 02:38:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:37 -0400 |
commit | 57c8f63e8e7a4a95d7fcc49e3953341fb4039899 (patch) | |
tree | cf0bd22654e4aff40c5d11775e949aba558922df /mm | |
parent | 54a3bdd76e82d7f64e5504409c55b51e48c3a10a (diff) |
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.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/nommu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 989e2e9af5c3..8bbbf147a794 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -367,6 +367,11 @@ struct vm_area_struct *find_extend_vma(struct mm_struct *mm, unsigned long addr) | |||
367 | return find_vma(mm, addr); | 367 | return find_vma(mm, addr); |
368 | } | 368 | } |
369 | 369 | ||
370 | int expand_stack(struct vm_area_struct *vma, unsigned long address) | ||
371 | { | ||
372 | return -ENOMEM; | ||
373 | } | ||
374 | |||
370 | /* | 375 | /* |
371 | * look up the first VMA exactly that exactly matches addr | 376 | * look up the first VMA exactly that exactly matches addr |
372 | * - should be called with mm->mmap_sem at least held readlocked | 377 | * - should be called with mm->mmap_sem at least held readlocked |