Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3253728rwb; Mon, 15 Aug 2022 22:23:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Qbh9l6N2i6xRpG2i5b5y5b+om8TBYR6LMeR0hFZ7nPqDWrlpFGFa8mgAPxUPYn11T+Zv2 X-Received: by 2002:a05:6a00:301c:b0:52d:bff9:5004 with SMTP id ay28-20020a056a00301c00b0052dbff95004mr19548302pfb.84.1660627434673; Mon, 15 Aug 2022 22:23:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627434; cv=none; d=google.com; s=arc-20160816; b=xkNR+hU559FkIc1G9GdF/18R5dr/AS7yZmmLuMd6TjrOCLo2/ln+aqHBM3ivtkQNm7 CxCKcHe148ItKgoAzu+En5CdRFCuPPivT2CuTcFgxItztNVpkvx4mqYGtM3SlAwK5DDY aknj+ae9TeU6ZDPzPDYAm2fSPryqY7UC7f1swq1DYI+qlZIPD5oDzw9oZIwGPxkE2qwe v3dC9Jna8v+/XxNiTCpLJTzTGLI03rmzQR4KWIEZnF7i/dNi2swp82SEZY+FhZn+TPL6 jaj5Yr22xcMu41qzWAgPc/nvI9a8RTqo8zPLUE/MVoaM0jMCGRefVtgDWF05mvS1e2Q9 AJ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=u07jvn3VwXPcvdRcoCP3/DWzk3V40wckIaH2OeJBQvs=; b=vAsf8VAKTL61I9/X3Rn4KKOOsKhu4/oQ9yXWZsT0TLDpxXukZSIHLUopVl/o+d57/2 +qUF4TAeMM0EMuXtpQF7qfv1N9mZibAl1GRLwjheBHWfvFH0Yi08NIWC3eRHPE+So8C0 lmDj2glQWKVdDAzEVQUDHC1LQOGFaNPhiNiYafl+Qh2acyqUBWE4q/W1N+YqhHp8/hJd AhdRhWDFtAgTSFwlwh7kp8wHv6Llh5oMKCydJ1/bpeuxuNxu0rwhhK1gjySFIEYX3sYb Y6Gh7J+RZaVUPAXzAI1jByfT8nsgaq0c6rs+qYAzQURWSAbzy6fyQuUqeUq7/Gft7+zV sQFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dQcbPqoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h69-20020a636c48000000b004206ecd8fabsi12763050pgc.781.2022.08.15.22.23.43; Mon, 15 Aug 2022 22:23:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dQcbPqoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231162AbiHPEoR (ORCPT + 99 others); Tue, 16 Aug 2022 00:44:17 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = { \ .pfn = page_to_pfn(_page), \ - .nr_pages = compound_nr(page), \ - .pgoff = page_to_pgoff(page), \ + .nr_pages = compound_nr(_page), \ + .pgoff = page_to_pgoff(_page), \ .vma = _vma, \ .address = _address, \ .flags = _flags, \ -- 2.35.1