Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7227356ybi; Mon, 8 Jul 2019 17:22:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8NrWgTMSapiU/3XYxaTIfwj9Q1EJhoTGHB4ueOoVAHzN/mRuicrHusTm/Zoqng/2TXu15 X-Received: by 2002:a17:90a:1c1:: with SMTP id 1mr29231375pjd.72.1562631761322; Mon, 08 Jul 2019 17:22:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562631761; cv=none; d=google.com; s=arc-20160816; b=mamDXtMyp2IXKmKrPvSk91lH5z/Ywo+tabuSL2jHDnSyuwSLwbalur0YPUnPuo922Q 6TmM4CTdhiV8m8JmjEDIcxmxfaktiQT4J3Qry9Ce6BIWiM1sk01GnPHXZIG6f0O8eonL wV907nPkhNpAU66/hJG/eTDhXvh4t7+vjuLpUImbchuswfW/R7avFAKkunPLKVUoQQnw 4aJpyS7j/MkUbhpi1VxJzp7syCwFp+cgaMVXUt67MzmxFMwj/nNNLr1ACjwVadkE7ZiP j/pErqv62LRGEvU2RSS09PbhWvf0rdu7hLSf3ypGpZqStOF0u9pzW00J4vvb5O5SYV2f 4v7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=zQDDvQl6NrdhXiESsMNwzYHJv3BnJo6I9kfFm25OpVg=; b=Nzkl1KcKL4LSRWWdNxcU2YH9AuPv4LFD3IDSviiLFtXQp//ZmJqEDshd4l5/JBe0xp 7IHh/swXG2mBA1g/G4gOXNsb49PapppgfbW01nNvjd25lFDZNeDbrhxwlGpwpqZR4AhS xeYKOi9jBD5MYSKJ7W+l+tIof5V8ptOMTVRUtq6FjlUwMRk+CTkPQmsxeMLDwQlm40d4 L0Fg34I595SPlLZD18wGgC37570x4ah6agq9MSLSlYtkZFriIL6d7lND+zRe5Stn7ax9 o8dte98mXumTuvhU/1xrgOAQ7yFMzb31X0SQd2Pdq2tHl4aTiybImZK6iRsXoECdoMxt GTxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=GvWy18xe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si18956199plz.48.2019.07.08.17.22.25; Mon, 08 Jul 2019 17:22:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=GvWy18xe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbfGIAVm (ORCPT + 99 others); Mon, 8 Jul 2019 20:21:42 -0400 Received: from ozlabs.org ([203.11.71.1]:60739 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfGIAVl (ORCPT ); Mon, 8 Jul 2019 20:21:41 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 45jNKZ5DTHz9s7T; Tue, 9 Jul 2019 10:21:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1562631699; bh=BeM+WnpHQZ++djgkGKnXdl8TZo6yDQkhgtGOEWV3R5Y=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GvWy18xe4sepIubWmDqrv5O1gIXhVUx4HrSl6rHE+stIdVJL3E64Zx2W1L0I28otT TSa3XXP/mVjuTDMKvxCpCHW5bzOdnleU060efKSqRO9dNymTmb4mQRxdPHiTKawvU/ MMB8aPqTavqb/AfW5SE9D/GrVsvW9GWiUDMrskRGcGQvj5EFxClHpu6tuecGIqCXlq AqluRAui2whMlFkaZoRBPqmUgaCqZnqKmCJfzeeakVgqSBV4AbAtbJ4GTADna3DDTX luLELirdDwk16jt+bsR44KApeiNvchmkTg2+l8PkmnHfM/PNFBy3qnjRpgxmyJQZgX JDM2wKOa+FVvg== Date: Tue, 9 Jul 2019 10:21:37 +1000 From: Stephen Rothwell To: Jason Gunthorpe , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra Cc: Linux Next Mailing List , Linux Kernel Mailing List , Nikolay Borisov Subject: Re: linux-next: build failure after merge of the hmm tree Message-ID: <20190709102137.421d1dd1@canb.auug.org.au> In-Reply-To: <20190701210853.0c72240b@canb.auug.org.au> References: <20190701210853.0c72240b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/94y5l8fndW+yjD7YmlNI+mO"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/94y5l8fndW+yjD7YmlNI+mO Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Mon, 1 Jul 2019 21:08:53 +1000 Stephen Rothwell w= rote: > > After merging the hmm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: >=20 > mm/hmm.c: In function 'hmm_get_or_create': > mm/hmm.c:50:2: error: implicit declaration of function 'lockdep_assert_he= ld_exclusive'; did you mean 'lockdep_assert_held_once'? [-Werror=3Dimplicit= -function-declaration] > lockdep_assert_held_exclusive(&mm->mmap_sem); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > lockdep_assert_held_once >=20 > Caused by commit >=20 > 8a9320b7ec5d ("mm/hmm: Simplify hmm_get_or_create and make it reliable") >=20 > interacting with commit >=20 > 9ffbe8ac05db ("locking/lockdep: Rename lockdep_assert_held_exclusive() = -> lockdep_assert_held_write()") >=20 > from the tip tree. >=20 > I have added the following merge fix. >=20 > From: Stephen Rothwell > Date: Mon, 1 Jul 2019 21:05:59 +1000 > Subject: [PATCH] mm/hmm: fixup for "locking/lockdep: Rename > lockdep_assert_held_exclusive() -> lockdep_assert_held_write()" >=20 > Signed-off-by: Stephen Rothwell > --- > mm/hmm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/mm/hmm.c b/mm/hmm.c > index c1bdcef403ee..2ddbd589b207 100644 > --- a/mm/hmm.c > +++ b/mm/hmm.c > @@ -47,7 +47,7 @@ static struct hmm *hmm_get_or_create(struct mm_struct *= mm) > { > struct hmm *hmm; > =20 > - lockdep_assert_held_exclusive(&mm->mmap_sem); > + lockdep_assert_held_write(&mm->mmap_sem); > =20 > /* Abuse the page_table_lock to also protect mm->hmm. */ > spin_lock(&mm->page_table_lock); > @@ -248,7 +248,7 @@ static const struct mmu_notifier_ops hmm_mmu_notifier= _ops =3D { > */ > int hmm_mirror_register(struct hmm_mirror *mirror, struct mm_struct *mm) > { > - lockdep_assert_held_exclusive(&mm->mmap_sem); > + lockdep_assert_held_write(&mm->mmap_sem); > =20 > /* Sanity check */ > if (!mm || !mirror || !mirror->ops) I am still getting this conflict (the commit ids may have changed). Just a reminder in case you think Linus may need to know. --=20 Cheers, Stephen Rothwell --Sig_/94y5l8fndW+yjD7YmlNI+mO Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl0j3hEACgkQAVBC80lX 0GxaywgAmENSm1MjVA5kG/Vfcjl6o2QoPYrf+yWfylPVSHBC8neY9OJebPQ0BIXW M6L8KulNiV4rPHm1aDsv3/5APubVT3jXfHWptm41IvGCfHnsxNLcxXqN+OEw9RvI YgXZaBrJbgO86LUiuXXhNMqb5UTvTbp8qoMoQbz1N3U7DdV2pLqLxqF8FRlh1Yom n2+ZmXdExBCWGiwzB2oYvbPuEVvM305n36YDLAWaCXEsHR+hrkkBjXEQqyC2YB05 /uTTu3OpjkoUpfMMjkt8VdPVT3V8nJ1F/WzU9Y16T1szF9gDf9yDowFgQshojiYc /oREqeQzYlzapW6X32Vox0YFsrFnCA== =kCFW -----END PGP SIGNATURE----- --Sig_/94y5l8fndW+yjD7YmlNI+mO--