Re: v5.1-rc7 fails to build on s390x (Re: Linux 5.1-rc7)

From: Kirill A. Shutemov
Date: Mon Apr 29 2019 - 09:25:23 EST


On Mon, Apr 29, 2019 at 07:21:36AM +0200, Michal Kubecek wrote:
> v5.1-rc7 fails to build on s390x due to
>
> vmf->page = ZERO_PAGE(vmf->vm_start);
>
> from commit 67f269b37f9b ("RDMA/ucontext: Fix regression with
> disassociate"). This is not a problem on x86_64 where ZERO_PAGE()
> doesn't use its argument but s390 version does.
>
> I suppose the line should rather read
>
> vmf->page = ZERO_PAGE(vmf->vma->vm_start);
>
> but I'm just guessing.

I belive it has to be

vmf->page = ZERO_PAGE(vmf->address);

--
Kirill A. Shutemov