Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1400708ybs; Mon, 25 May 2020 15:19:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz94Dvt7AnuBmFzpnzAYXFF6MgosrE/YiH9bFUSRig1moqZkmn70dHAMBuUqjrNTv6M69fb X-Received: by 2002:a05:6402:b91:: with SMTP id cf17mr16733857edb.148.1590445165917; Mon, 25 May 2020 15:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590445165; cv=none; d=google.com; s=arc-20160816; b=YHhlPYrqbcwYQyrpo0uN/+ugvcGXksnCr8kFG4BRcSEbv2aX6yUowPPrHwOhPQ2yC+ J4dDxS8s+ZL9NbFAd1LKm0yJqiOr3OY+9xiJB5s12/SuUo7rRf39SL2vKcubV2zwe6A7 oFFlWrYXv4x/iKlNBo0N8AL40NcufUdTWsbR1pICwiby4Zi7QAqFfMc+dWn1GbdiykWd ht/QoXFSESMRKnrIwP71SpLGozsukNgw4En91jg8N+cPaRzeTWgFsap8VntLN4oJtLh7 nJh0hSxljbks3WqCfB/wlkr4kMEidXXlrx912ehI8p9LW+rXRovhPkwsPxPPzBZ7/dyk 5lQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=B44ZR8YbjlxZaVO8MV90cF+K5/pLr/M0ZkZHcJrr5JU=; b=F3JJz6MV8GHZVS9OnLgkQjUo0Ds/mN/PKcO4SA9DSVE2pnMkXyGWaupU45jzcZlDGr cCLg1jWy+h79O3O6erBfer/f//wQTsSyVgfpkmiBeTbUbjoenUx/H1E667YexemdYF93 2AzEUEJAkbGjeN3EVZ3MTVYSlyhpAsFIiC+3dOOep5yMEQvUhC1r0vBgv5OmR2iGziLN VQ3dbxnnwLHXRntUOEYaJlYJx61jS8zNVu6Tp/B5gm6Ro7P1XLJ0m3FhiePWmZmGLFt7 K1fI0oZ70eJeEbNTxcVW15VLJLq3kYrnX5zmlOMsmY+Vji7I5vMrOkV2EX3Hw5LDQnZf pfVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Chwl/QQx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm10si9477935edb.82.2020.05.25.15.19.03; Mon, 25 May 2020 15:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="Chwl/QQx"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388979AbgEYSSs (ORCPT + 99 others); Mon, 25 May 2020 14:18:48 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:15068 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387644AbgEYSSr (ORCPT ); Mon, 25 May 2020 14:18:47 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 25 May 2020 11:18:35 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Mon, 25 May 2020 11:18:47 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Mon, 25 May 2020 11:18:47 -0700 Received: from [10.2.58.199] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 25 May 2020 18:18:47 +0000 Subject: Re: linux-next: build failure after merge of the akpm tree To: Stephen Rothwell , Andrew Morton CC: Linux Next Mailing List , Linux Kernel Mailing List , Michel Lespinasse References: <20200525221700.0aa347f7@canb.auug.org.au> X-Nvconfidentiality: public From: John Hubbard Message-ID: <4e1d8a9d-e308-df6a-6921-dbbe8d5f8389@nvidia.com> Date: Mon, 25 May 2020 11:18:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200525221700.0aa347f7@canb.auug.org.au> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1590430715; bh=B44ZR8YbjlxZaVO8MV90cF+K5/pLr/M0ZkZHcJrr5JU=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=Chwl/QQxWSGf/T6mUMGZUo+dcs0yENwHSyinp5sOP7wXPjA+WAQ5/C+7JSw8a3qW6 fy1IZHRHRsTO6uHbr8wm1w6PW0cp4tEZ4Fn6MCK7JnqIMZgsvfjfh+46e8tuoh5U9Y WuSVqIOkW3A7EN5pWAW9ZPZanPCzeMRcJKz5Oc8daChIpVKFzadnBcuON+SsDDAKFe Hv6Rn1ScfdEMhf+syHvLggwSZhtX3IsSQcrp9+TEnRSTiQDarjiHst07JMYpB3rEKX iN4hnK2uFX3tyqt1c05Q4XoljYiyi7HLEtaFSe+TO/v/fQOxVcZ1sVmBUxD60l2YQU kLtOD1lUxtE+Q== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-05-25 05:17, Stephen Rothwell wrote: > Hi all, > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/kernel.h:14, > from mm/gup.c:2: > mm/gup.c: In function 'internal_get_user_pages_fast': > mm/gup.c:2732:33: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'? > 2732 | might_lock_read(¤t->mm->mmap_sem); > | ^~~~~~~~ > > Caused by commit > > 64fe66e8a95e ("mmap locking API: rename mmap_sem to mmap_lock") > > fron the akpm tree interacting with commit > > b1fc8b5ddb4e ("mm/gup: might_lock_read(mmap_sem) in get_user_pages_fast()") > > from the akpm-current tree. > > I added the following patch for today. > > From: Stephen Rothwell > Date: Mon, 25 May 2020 22:11:51 +1000 > Subject: [PATCH] mm/gup: update for mmap_sem rename > > Signed-off-by: Stephen Rothwell > --- > mm/gup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/gup.c b/mm/gup.c > index 8977e5fe9843..f4bca3de0b4b 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -2729,7 +2729,7 @@ static int internal_get_user_pages_fast(unsigned long start, int nr_pages, > return -EINVAL; > > if (!(gup_flags & FOLL_FAST_ONLY)) > - might_lock_read(¤t->mm->mmap_sem); > + might_lock_read(¤t->mm->mmap_lock); > > start = untagged_addr(start) & PAGE_MASK; > addr = start; > Yes, looks good. And in fact, Andrew has the same fix-up in the mmotm branch of linux-next.git, as commit a76c281a8ddd ("mmap-locking-api-rename-mmap_sem-to-mmap_lock-fix"). thanks, -- John Hubbard NVIDIA