xtensa: nommu: don't provide arch_get_unmapped_area
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 22 Sep 2014 03:21:48 +0000 (07:21 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 21 Oct 2014 09:28:48 +0000 (13:28 +0400)
Nommu unconditionally provides arch_get_unmapped_area that always
returns -ENOMEM.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/syscall.c

index 5d3f7a119ed1e91a5baf6fe5af7a33d842146533..83cf49685373867080689b163bc5fcf3ed89f3c7 100644 (file)
@@ -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