diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-09-22 05:21:48 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-10-21 11:28:48 +0200 |
commit | d10fa7cf3dc0b38995a691c3f4e9f90acaaa05f2 (patch) | |
tree | 494bfb308eebf90fc9768e6e3614649151f09144 /arch/xtensa/kernel | |
parent | xtensa: nommu: provide MAP_UNINITIALIZED definition (diff) | |
download | linux-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.c | 2 |
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 |