--- zzzz-none-000/linux-3.10.107/arch/xtensa/kernel/syscall.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/xtensa/kernel/syscall.c 2021-02-04 17:41:59.000000000 +0000 @@ -57,6 +57,7 @@ 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) { @@ -86,10 +87,11 @@ /* At this point: (!vmm || addr < vmm->vm_end). */ if (TASK_SIZE - len < addr) return -ENOMEM; - if (!vmm || addr + len <= vm_start_gap(vmm)) + if (!vmm || addr + len <= vmm->vm_start) return addr; addr = vmm->vm_end; if (flags & MAP_SHARED) addr = COLOUR_ALIGN(addr, pgoff); } } +#endif