* [PATCH] nommu: stub expand_stack() for nommu case
@ 2007-06-01 11:09 Greg Ungerer
0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2007-06-01 11:09 UTC (permalink / raw)
To: torvalds; +Cc: gerg, linux-kernel
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>
diff -Naur linux-2.6.21/mm/nommu.c linux-2.6.21-uc0/mm/nommu.c
--- linux-2.6.21/mm/nommu.c 2007-05-01 17:09:34.000000000 +1000
+++ linux-2.6.21-uc0/mm/nommu.c 2007-05-01 17:14:27.000000000 +1000
@@ -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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-01 11:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 11:09 [PATCH] nommu: stub expand_stack() for nommu case Greg Ungerer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®