summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-09-22 05:21:48 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2014-10-21 11:28:48 +0200
commitd10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2 (patch)
tree494bfb308eebf90fc9768e6e3614649151f09144 /arch/xtensa/kernel
parentxtensa: nommu: provide MAP_UNINITIALIZED definition (diff)
downloadlinux-d10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2.tar.xz
linux-d10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2.zip
xtensa: nommu: don't provide arch_get_unmapped_area
Nommu unconditionally provides arch_get_unmapped_area that always returns -ENOMEM. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r--arch/xtensa/kernel/syscall.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/syscall.c b/arch/xtensa/kernel/syscall.c
index 5d3f7a119ed1..83cf49685373 100644
--- a/arch/xtensa/kernel/syscall.c
+++ b/arch/xtensa/kernel/syscall.c
@@ -57,6 +57,7 @@ asmlinkage long xtensa_fadvise64_64(int fd, int advice,
return sys_fadvise64_64(fd, offset, len, advice);
}
+#ifdef CONFIG_MMU
unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
unsigned long len, unsigned long pgoff, unsigned long flags)
{
@@ -93,3 +94,4 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
addr = COLOUR_ALIGN(addr, pgoff);
}
}
+#endif