From nobody Mon Sep 29 22:49:04 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23C5CC25B0F for ; Tue, 16 Aug 2022 04:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231723AbiHPEoS (ORCPT ); Tue, 16 Aug 2022 00:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232384AbiHPElH (ORCPT ); Tue, 16 Aug 2022 00:41:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C881E1; Mon, 15 Aug 2022 13:32:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A81C2B80EAD; Mon, 15 Aug 2022 20:32:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA8ABC433D6; Mon, 15 Aug 2022 20:32:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595536; bh=lbgD0Au6XKYX6+EUGeWj0iUm/4HGmQb87hTxwDPKaus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dQcbPqohc/vl6EMCNMZm9r1bRzunjyM/zMqZKYgiPuNjAFitA05MGg7FC4bWTIP4T oCQIoLq72qlCgixUR9EAlgPeuEfqdqhU3fhApE+KSWAVLFZ++zATVRU3rVqHqBtBzt mS7QFTrCntfZu5wJ8/RAdpptymMMXLp2kjZ6aV88= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Shi , Muchun Song , "Matthew Wilcox (Oracle)" , Andrew Morton , Sasha Levin Subject: [PATCH 5.19 0764/1157] mm: rmap: use the correct parameter name for DEFINE_PAGE_VMA_WALK Date: Mon, 15 Aug 2022 20:02:00 +0200 Message-Id: <20220815180510.041108811@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Yang Shi [ Upstream commit 507db7927cd181d409dd495c8384b8e14c21c600 ] The parameter used by DEFINE_PAGE_VMA_WALK is _page not page, fix the parameter name. It didn't cause any build error, it is probably because the only caller is write_protect_page() from ksm.c, which pass in page. Link: https://lkml.kernel.org/r/20220512174551.81279-1-shy828301@gmail.com Fixes: 2aff7a4755be ("mm: Convert page_vma_mapped_walk to work on PFNs") Signed-off-by: Yang Shi Reviewed-by: Muchun Song Reviewed-by: Matthew Wilcox (Oracle) Cc: Muchun Song Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- include/linux/rmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 9ec23138e410..bf80adca980b 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -325,8 +325,8 @@ struct page_vma_mapped_walk { #define DEFINE_PAGE_VMA_WALK(name, _page, _vma, _address, _flags) \ struct page_vma_mapped_walk name =3D { \ .pfn =3D page_to_pfn(_page), \ - .nr_pages =3D compound_nr(page), \ - .pgoff =3D page_to_pgoff(page), \ + .nr_pages =3D compound_nr(_page), \ + .pgoff =3D page_to_pgoff(_page), \ .vma =3D _vma, \ .address =3D _address, \ .flags =3D _flags, \ --=20 2.35.1