[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200707121207.l6CC7ok9026564@goober>
Date: Thu, 12 Jul 2007 22:07:50 +1000
From: Greg Ungerer <gerg@...pgear.com>
To: torvalds@...ux-foundation.org
Cc: gerg@...inux.org, linux-kernel@...r.kernel.org
Subject: [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@...inux.org>
---
diff -Naur linux-2.6.22/mm/nommu.c linux-2.6.22-uc0/mm/nommu.c
--- linux-2.6.22/mm/nommu.c 2007-07-12 15:22:07.000000000 +1000
+++ linux-2.6.22-uc0/mm/nommu.c 2007-07-12 15:24:21.000000000 +1000
@@ -367,6 +367,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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists