Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3026725rwb; Mon, 15 Aug 2022 16:24:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ahm0AuKdgLHrDATTmY5QcNPt4plHD8WbDk+E4MpWLKUiaOY73S/ohjnRpcJ2r0w5NJQmu X-Received: by 2002:a63:8143:0:b0:41b:ee3b:1b66 with SMTP id t64-20020a638143000000b0041bee3b1b66mr15771876pgd.31.1660605802352; Mon, 15 Aug 2022 16:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605802; cv=none; d=google.com; s=arc-20160816; b=Vtqk4QyrEbBJZ2ppcO4oha9Z3O5ON+tdWY1KU30CLmbMuS3nYNxS3MM87lw0RJSO0r 9yQAEqzoVSa8P9lLorU5Vfr90MqOq++U/ajXZjJTTEKIja5cExlkQbjh5aaNxanezIl1 obsFR1qokvlRLQB/LhXKr/zq3WRm/g/yGPEmz5mF9/EEwkkd8NbHZgso5VGXTWFXSZUT f6hgbI+6jkIB2JmSOiEP5V9crp1+zb+jaqZS9sdJG16GIoKRYLmmrVuOa+Ss7Mmdq0B+ q1rpVupsaBko3doC9gL/2Y/HhbkjUbPLAGVqLT71RKFuC4RJBDeg583GJwJPgvjaiRTp p1fw== 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=oVM175D3sPnb1FLXRBzqe6oBnaHzd7DP2d45yMCjLfk=; b=mG77xewIwNYM6ahrQtI5u6en2/5h477w1qQrZPRQITg8L3344aImz4En4wxCuo/MV6 sS1/PNy9mfi+y1C/ucDS71e2U1ILjS1SfJlq+ucKKeFNB6qp6yw9l69wgRRUOUu0WWWE aINSTFhKPG8o2RGKbmSg96Zp3IfpPXsRC1jxY8Uzg4DWxtJjYSYNPgnqOxYM2nwcghKy 4wPJgjxLTENGX7ilXzdPpU66zgfU3yhdKNEHpfIlzQ3J8RhYU1JE7R8nlDIMcELfQFLM OD2ZNG3cTBbX9eCO2sv14sqbYMIzza8rk4G3HON01768Vq0SaVvzbH242+WRfCqm2x9v gE3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F2smWI5G; 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 d10-20020a056a00244a00b0052d1a02e317si12263879pfj.129.2022.08.15.16.23.11; Mon, 15 Aug 2022 16:23:22 -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=F2smWI5G; 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 S1347742AbiHOVzF (ORCPT + 99 others); Mon, 15 Aug 2022 17:55:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349970AbiHOVwJ (ORCPT ); Mon, 15 Aug 2022 17:52:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47107107F1B; Mon, 15 Aug 2022 12:33:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 5D0416114B; Mon, 15 Aug 2022 19:33:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17C7EC433C1; Mon, 15 Aug 2022 19:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591995; bh=g1Bx1HzdKI7GlDoXKpbcU4VMK32z9g/6QCn0thKghpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F2smWI5GT0vrNB+BuDYCh5iWsiVHLbmdhYXJjM3tYZ+CUdJEN7eIY3+H7TwODzI8U RouW+0KC+teKeCuC26iMmULeIxQMzDBW4lD62irqmtM/a4PCEelZq1pClv4Kk7Ytaw NTcjp4W6oo9Tb/uNl3Hh6RvwL+/GW0r8uUEjQBYc= 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.18 0715/1095] mm: rmap: use the correct parameter name for DEFINE_PAGE_VMA_WALK Date: Mon, 15 Aug 2022 20:01:54 +0200 Message-Id: <20220815180458.976610783@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 17230c458341..a0c4a870bb48 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -220,8 +220,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