From patchwork Fri Feb 2 08:07:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 13542339 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00937C47258 for ; Fri, 2 Feb 2024 08:08:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 833A06B007D; Fri, 2 Feb 2024 03:08:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7E43E6B007E; Fri, 2 Feb 2024 03:08:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 684906B0080; Fri, 2 Feb 2024 03:08:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 5A93C6B007D for ; Fri, 2 Feb 2024 03:08:34 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 29F7E1C18BC for ; Fri, 2 Feb 2024 08:08:34 +0000 (UTC) X-FDA: 81746136948.07.C47B2C5 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf22.hostedemail.com (Postfix) with ESMTP id 84F59C0014 for ; Fri, 2 Feb 2024 08:08:32 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706861312; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4B3QQ0hn6W/OOMuAWwXMBnWBKPLPbfhbIhE+WOA0G6Q=; b=KrXjflW4tQyxlNVkoXhylmLitdsQQ5X11V54K1ym5vf7Eql6l78CNgg4BvdEPgMgtPudG9 p+MTdYDcE7rPMCzrzikkaBgTOI2Qhp3n4qkEYtmeuFG1CkrYTMFP0wUoDLXP++2S7+iYAN O9Plg8Yp3CGGx7C+0LBAUkU2xQLdTgQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706861312; a=rsa-sha256; cv=none; b=MMPW4RmOHFdaRIhVc9DkzY7Hx9rKWomhq5ILifCPt8xF2UjTmOlYV8eMJdO8xK01A1yTTb eIo64hFuSnuE9/a6ClvRq8TkK1dvNeckV9a4cWJIOFhDfcB4SIaq3ZpUGYruiXyICYNWgM jqlDfkkbrKKOVroSq2PupL+eCoT+vNI= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=none; spf=pass (imf22.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EDFB71763; Fri, 2 Feb 2024 00:09:13 -0800 (PST) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E4093F5A1; Fri, 2 Feb 2024 00:08:27 -0800 (PST) From: Ryan Roberts To: Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , David Hildenbrand , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: Ryan Roberts , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 04/25] arm/mm: Convert pte_next_pfn() to pte_advance_pfn() Date: Fri, 2 Feb 2024 08:07:35 +0000 Message-Id: <20240202080756.1453939-5-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240202080756.1453939-1-ryan.roberts@arm.com> References: <20240202080756.1453939-1-ryan.roberts@arm.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 84F59C0014 X-Rspam-User: X-Stat-Signature: uqaxkowe8tenudbdhu5ga7apxfc3fa4x X-Rspamd-Server: rspam03 X-HE-Tag: 1706861312-968625 X-HE-Meta: U2FsdGVkX1/0QonBjW9TO2SV3DpwVSCSaNz6+IskCPYleCRZPMX0iqk7M8Ax3QeRq1ey5CE1jloiRRHRzZTrcXy9/VSvwGz+zrf3p4QF4oF8kujx921xjfoN5ExvNyFJHTX+cSrDTo+1yZGB8ecINpwD9pFk8apUe6dsLwYoaPm544cxX5kkFvyLlx4iGnfOlCtmiycPxdnE4+lC31DApmtdPzd2haNVblwFTrL3yApue5lOCN/2VM5b1oKnUyRj4IxRHszLmZ0JPevgo9oGisO0j9rASATJYFndsSlJlDosvLo5erYEzpADn5w62T5RDW8IpXPwIg7UIHEnxYL/invNb9zGJVCeo215ZLDoSPg/WISqoSLoDztWihbSGTd9njhn5+vT3XnaI2OyUR4rP+JgHz4e/Lwk0ENYUBrvvO4cpjMcaj00hciJVGgpKLP3cLHzsk+4iAboaBqiAMITiXBTfjOA0e862b/znuKGABQQaIhDfxJ5TY3eRpdPzJPbjg7XSzFtcHCf4PT8j5G0u2CuDcIFKqKZlPgXhG0z1wo1fqyIP/jaamxSpr4e4XSfqA+lVTBgN2NJonB8uRDA/4O5FC+Pi8qSq+I4BVENbAhZkINVecAk/CbHfAOU8BKm0QY+lkR/3zRaHQPfbPZOCQLsqVI6BUhSiOl25ZvtkK80BTWodUUn14DXBPFEGmSx+ht+CdNH84rIJ6y738PQuQaZIa8Q2cgmmPgx84Avtv9XKPMIPTbi4pQDgF+1wTNC/uN1i9f7yxsPpLSl8aQE1mVg2783DPnR59fimdJPBcYy2vdoxKc6V9EOsfimE7LCLnXlFMlSOzaFRIs+rFLqk3LBwcMdlcIloepiqto/IAUDhO7z9utiKLm6hvYGD2VCsx9z8JhIT4pKuYOe/oc4FW9IjmUCstxutYSGAejzfocq4flssjo2KupDTPSHakYkCa21Qa58/w/nwKdyi8K jt408lc+ E65TZCUHEmKtVg1l+LS5w0n4J42fz0zJjLDaWzDR6LWHqEC0oiS3E/y9nT15Jt08DKc67lyE+mal6XEhAn2dfoXsscp4LGG/E+eOhjmXuEUOpjIHwzszG2PUT2FPdin9Cc3+F0qHnrQhBxbaO3CE66dB2aPM5iDQT9kGzUSB+28WL/v+aB27ITglbkvla1HpvUT+wOrVUiyH11qtN62knwj1DUIAuNi+Yf8Fb8ml3EKTjYUpqYWJuoMQJO/V1W1WNlKAY8oCVPWpwzH703Xl+7oYMtQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Core-mm needs to be able to advance the pfn by an arbitrary amount, so improve the API to do so and change the name. Signed-off-by: Ryan Roberts --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c24e29c0b9a4..137711c68f2f 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1814,6 +1814,6 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, if (--nr == 0) break; ptep++; - pteval = pte_next_pfn(pteval); + pteval = pte_advance_pfn(pteval, 1); } }