aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-09-21 23:21:48 -0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-10-21 05:28:48 -0400
commitd10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2 (patch)
tree494bfb308eebf90fc9768e6e3614649151f09144 /arch/xtensa/kernel
parentf6891ddbc78dc819281d4fef158c0993e5ca7809 (diff)
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,
57 return sys_fadvise64_64(fd, offset, len, advice); 57 return sys_fadvise64_64(fd, offset, len, advice);
58} 58}
59 59
60#ifdef CONFIG_MMU
60unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, 61unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
61 unsigned long len, unsigned long pgoff, unsigned long flags) 62 unsigned long len, unsigned long pgoff, unsigned long flags)
62{ 63{
@@ -93,3 +94,4 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
93 addr = COLOUR_ALIGN(addr, pgoff); 94 addr = COLOUR_ALIGN(addr, pgoff);
94 } 95 }
95} 96}
97#endif