Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1986150rdb; Sun, 19 Nov 2023 20:22:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsB49cuj9drjZQnMVYwD9BeLEq8MFoU4UMDieNMcQOkwvzC2V05ehzsXEiM3sU7a+l4ZZE X-Received: by 2002:a17:902:ee89:b0:1cc:5648:f15c with SMTP id a9-20020a170902ee8900b001cc5648f15cmr4311651pld.48.1700454176083; Sun, 19 Nov 2023 20:22:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700454176; cv=none; d=google.com; s=arc-20160816; b=iE/1A3puhYc4DKj7N2ZaNIJ6PyLKTWCF7/zw7Vs6cS7BSgm2TH+OH1Ce4X2Rm59i9W +Rl8QvlL3IUh2JMB/4o5JlxObawTphcBxSwkXZz/FxM0MhAQQc0m+ojexi3a/9k+5fEg R3rxQt/J5dvaadEv+eshaOHMija28vEr88qTLa58s5cKWweiRO1I7AMAjqJZE1f0wbR/ 4wuHaWyq8o7WfPYcjybf6WBuMgeKJ7BVSCKUwINOtPAEWQBPmkot3K1oragt/0HfiBej njzhx4G1V9UcbGW0zUA5c90oppUVZiFxPhzoTKrzAtuclXZcYAksYBSASR5+OnN8XmXW 19Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=0q6NjU+ifeLvujPJLHr8VqYO47RqQ4I3ODqxgOoEHMY=; fh=PZke8xm2IXezaW1HYYDHcti0LY63sQ5NCKPgN60jRtg=; b=Odce6aGPLFQc4UvvoNcG0i3tRs2zM8bZjaYk9IcEICgo3Acdxae5HZfYEY4YtMv2Zc X/fTYk2xJyh1QvbQH/poe6PWSaZX8njjwAbSvZG0aNkDMTBy4BCXewICLVF4UM3yCk5z +bJoIfHL3fdrhFCMstyxLJnG49E1YfUMym8YGhTfrlrbc+gUIUQBJXJh9+ZD+vWnj3ZN AlAQSuV89ibPd6JkWIPPKR+LA9mKhf8OOXS5mRFtq50dQm/w6RI7iLeXTjJWnOrBtbKM l7YvJP65XA+/C5RNOslGtIl0ki5XL8sxZg1fdRsSqhB5R2YJWP16pdGIeYH4XleM66oH LKog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=SWM5zXWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ik26-20020a170902ab1a00b001b8ba81d04dsi7083408plb.395.2023.11.19.20.22.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 20:22:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=SWM5zXWm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2CE66809FEEE; Sun, 19 Nov 2023 20:22:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231854AbjKTEWp (ORCPT + 99 others); Sun, 19 Nov 2023 23:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjKTEWn (ORCPT ); Sun, 19 Nov 2023 23:22:43 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3623BC5; Sun, 19 Nov 2023 20:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1700454156; bh=0q6NjU+ifeLvujPJLHr8VqYO47RqQ4I3ODqxgOoEHMY=; h=Date:From:To:Cc:Subject:From; b=SWM5zXWmCl9j2pPW5U4s2sP/7ykJceEih5LBo4n7tulgcg9ecov73QBwrU1jSz/gy 5d87zLWpgenaT673+I/V71Z80HQs5zI4nMezehUVreW+r4XvrR76IkCsoK155PyRUp 3Wm1UsnIyJKTFTrwp10qsnY47K2oH8oe6Y2YuQ1GuSUOcP2QStBreNvCYh7gdVse36 Ddb3al2kKGjsfYl+NG/UVAWS9m4GrE1yOiABts1Ct2HsA6diM5O0wZ4n3Cioxmu8Rr tzBkuInPyoXWh5TG/i87kZ3np9VFHAUx600dtU6w084YCTaXBdn+pXiKP4//mLGzgr iPCwyisrsm3GQ== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SYZ9M3Hsmz4xS9; Mon, 20 Nov 2023 15:22:31 +1100 (AEDT) Date: Mon, 20 Nov 2023 15:22:27 +1100 From: Stephen Rothwell To: Paolo Bonzini , Andrew Morton Cc: KVM , Ackerley Tng , Chao Peng , Isaku Yamahata , "Kirill A. Shutemov" , Michael Roth , Sean Christopherson , Yu Zhang , "Matthew Wilcox (Oracle)" , Linux Kernel Mailing List , Linux Next Mailing List Subject: linux-next: build failure after merge of the kvm tree Message-ID: <20231120152227.3bfe2450@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/HQyEe5MksKX=y34cCuJH7xS"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 19 Nov 2023 20:22:53 -0800 (PST) --Sig_/HQyEe5MksKX=y34cCuJH7xS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kvm/../../../virt/kvm/guest_memfd.c:306:10: error: 'const struct a= ddress_space_operations' has no member named 'error_remove_page'; did you m= ean 'error_remove_folio'? 306 | .error_remove_page =3D kvm_gmem_error_page, | ^~~~~~~~~~~~~~~~~ | error_remove_folio arch/x86/kvm/../../../virt/kvm/guest_memfd.c:306:30: error: initialization = of 'int (*)(struct folio *)' from incompatible pointer type 'int (*)(struct= address_space *, struct page *)' [-Werror=3Dincompatible-pointer-types] 306 | .error_remove_page =3D kvm_gmem_error_page, | ^~~~~~~~~~~~~~~~~~~ arch/x86/kvm/../../../virt/kvm/guest_memfd.c:306:30: note: (near initializa= tion for 'kvm_gmem_aops.launder_folio') Caused by commit 640be5bc564f ("fs: convert error_remove_page to error_remove_folio") from the mm tree intercting with commit a7800aa80ea4 ("KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific= backing memory") I have applied the following supplied merge fix patch (thanks Andrew). From: Andrew Morton Date: Fri, 17 Nov 2023 09:28:33 -0800 Subject: [PATCH] fs: Convert error_remove_page to error_remove_folio On Fri, 17 Nov 2023 16:14:47 +0000 "Matthew Wilcox (Oracle)" wrote: > There were already assertions that we were not passing a tail page > to error_remove_page(), so make the compiler enforce that by converting > everything to pass and use a folio. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > Documentation/filesystems/locking.rst | 4 ++-- > Documentation/filesystems/vfs.rst | 6 +++--- > block/fops.c | 2 +- > fs/afs/write.c | 2 +- > fs/bcachefs/fs.c | 2 +- > fs/btrfs/inode.c | 2 +- > fs/ceph/addr.c | 4 ++-- > fs/ext2/inode.c | 2 +- > fs/ext4/inode.c | 6 +++--- > fs/f2fs/compress.c | 2 +- > fs/f2fs/inode.c | 2 +- > fs/gfs2/aops.c | 4 ++-- > fs/hugetlbfs/inode.c | 6 +++--- > fs/nfs/file.c | 2 +- > fs/ntfs/aops.c | 6 +++--- > fs/ocfs2/aops.c | 2 +- > fs/xfs/xfs_aops.c | 2 +- > fs/zonefs/file.c | 2 +- > include/linux/fs.h | 2 +- > include/linux/mm.h | 3 ++- > mm/memory-failure.c | 10 +++++----- > mm/shmem.c | 6 +++--- > mm/truncate.c | 9 ++++----- > virt/kvm/guest_memfd.c | 9 +++++---- virt/kvm/guest_memfd.c exists only in the KVM tree (and hence linux-next). So I assume Stephen will use the change from this patch when doing his resolution. This: --- virt/kvm/guest_memfd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/virt/kvm/guest_memfd.c b/virt/kvm/guest_memfd.c index b99272396119..451435123fe7 100644 --- a/virt/kvm/guest_memfd.c +++ b/virt/kvm/guest_memfd.c @@ -267,7 +267,8 @@ static int kvm_gmem_migrate_folio(struct address_space = *mapping, return -EINVAL; } =20 -static int kvm_gmem_error_page(struct address_space *mapping, struct page = *page) +static int kvm_gmem_error_folio(struct address_space *mapping, + struct folio *folio) { struct list_head *gmem_list =3D &mapping->private_list; struct kvm_gmem *gmem; @@ -275,8 +276,8 @@ static int kvm_gmem_error_page(struct address_space *ma= pping, struct page *page) =20 filemap_invalidate_lock_shared(mapping); =20 - start =3D page->index; - end =3D start + thp_nr_pages(page); + start =3D folio->index; + end =3D start + folio_nr_pages(folio); =20 list_for_each_entry(gmem, gmem_list, entry) kvm_gmem_invalidate_begin(gmem, start, end); @@ -303,7 +304,7 @@ static const struct address_space_operations kvm_gmem_a= ops =3D { #ifdef CONFIG_MIGRATION .migrate_folio =3D kvm_gmem_migrate_folio, #endif - .error_remove_page =3D kvm_gmem_error_page, + .error_remove_folio =3D kvm_gmem_error_folio, }; =20 static int kvm_gmem_getattr(struct mnt_idmap *idmap, const struct path *pa= th, --=20 2.40.1 --=20 Cheers, Stephen Rothwell --Sig_/HQyEe5MksKX=y34cCuJH7xS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmVa3wMACgkQAVBC80lX 0GyOogf9EJDh3i01lt60JctG5HM++m93Iszf4pAQw5fEiRxG/YKyWCAC/mK6s9mq UTlcebdBYgcYGtDclNoYVpZ2mYXqfwxEhPkfT6glga1POWDW/acuhLtTe/yo7uUX oz4liDYNa76V+Q3lPtrdAfbUiwudq7AHwkuWBnjCeDbOByQrDaV5y5YEOSemC1Zg 0j5G8xNLyTMZFk2T0w3Lmb8QBimcf1g2ECwZr5Cvse6kCsoq+nuVwJmnEv8kWR4K QrD8EngzncFxH3RWcVKBCn4E51NLOdJkj1d71uq5UlyA5rsZ8Cu5WZ7vsqV+hgqP 2EgAhy4WoIFPvKzcOA9jydK0uV3dSA== =gNFH -----END PGP SIGNATURE----- --Sig_/HQyEe5MksKX=y34cCuJH7xS--