lkml.org 
[lkml]   [2007]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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>



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-06-01 13:13    [W:0.369 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site