On Fri, Jul 25, 2008 at 02:34:55AM -0700, Andrew Morton wrote: > On Fri, 25 Jul 2008 12:27:48 +0300 Adrian Bunk <bunk@xxxxxxxxxx> wrote: > > > Further testing revealed that you should choose a file that also gets > > compiled on MMU-less architectures: > > We don't have one :( > > I guess util.c will have to do. >... Requires the fix below. cu Adrian <-- snip --> This patch fixes the following build error: <-- snip --> ... CC mm/util.o /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c: In function 'arch_pick_mmap_layout': /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c:144: error: dereferencing pointer to incomplete type /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c:145: error: 'arch_get_unmapped_area' undeclared (first use in this function) /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c:145: error: (Each undeclared identifier is reported only once /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c:145: error: for each function it appears in.) /home/bunk/linux/kernel-2.6/git/linux-2.6/mm/util.c:146: error: 'arch_unmap_area' undeclared (first use in this function) make[2]: *** [mm/util.o] Error 1 <-- snip --> Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx> --- f003405997b99d300c99f7b1eae408fe42c07126 diff --git a/mm/util.c b/mm/util.c index 0efd830..d8d0221 100644 --- a/mm/util.c +++ b/mm/util.c @@ -3,6 +3,7 @@ #include <linux/string.h> #include <linux/module.h> #include <linux/err.h> +#include <linux/sched.h> #include <asm/uaccess.h> /** -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html