From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89FBBC4828F for ; Thu, 8 Feb 2024 06:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QXeEgORNEy9zWaqNeNyrIPAUT9arfM5ZXnh7zJZDi5E=; b=hWFPO4WSHPpuCn oDuEnjw9glaYYQQa6DII9S8cEFmgiYlzDkLa4D5SX79y/JGtd+afeZvk5gjVfsABP6e6RGSwXHWrZ IUrCDphrZ90biri7gy+2uKgrIBDfLxX4zNEEdJWa8eofgfNoNggh3eZXrRz4tDFho7JV+PuLHTifF w4KlESSfakc8+oxquNf3wuqu7MmlQJfuBiETyrUFBHDMb+6tCsXBbeKlMlKvRaAW62yzNxUOJFPKx 52DQwy8h0QZaTUj2fPSjjWcIBin4899h3y4XdCK4c3dXwfGFGX/2H2Yz8ER0qgSNWlgTXdnDexidw mq0ew2wZxvNbrdKpYoiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXxe3-0000000CkR2-1GPy; Thu, 08 Feb 2024 06:12:23 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXxe0-0000000CkQ4-3IHP; Thu, 08 Feb 2024 06:12:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2CAB561B0E; Thu, 8 Feb 2024 06:12:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96ADEC43390; Thu, 8 Feb 2024 06:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707372739; bh=L4FBQtW/eF2Uu1SqIrK2nRsbjsKSv4bUFB1aeX49JJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HJX01pqqXnG+GEldJgYaVDhgObRa/4ZDUsQRXO0FxxpW+AgXzngnCGwKPtmlrSDNF Cd0wch4ykXrr0mi1Egq91joKDYcLOSWO4CV5+NT+l0PKfU1ySJjGlhsCWGbNmfqv8r W/rtdDJdoiXubGXIwaYbFfQafaBSv8zSGBXWrti3K34px06JngBKtot/k1I6J8kupf 7RkJg6zbfIo00oLX58qxCXkm64N8BM0iGfo103B+q498Q8cmvH2+glZIe263m+Hl6Z B7vaV7wzv47KLyOCMCRswjVEGZqlxxnccg4wI4k9pxoaK10TbQYx++1EmVWsPo0kxO 3dRtTW0ogm2QA== Date: Thu, 8 Feb 2024 08:11:54 +0200 From: Mike Rapoport To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Matthew Wilcox , Ryan Roberts , Russell King , Catalin Marinas , Will Deacon , Dinh Nguyen , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , "David S. Miller" , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v3 02/15] arm/pgtable: define PFN_PTE_SHIFT Message-ID: References: <20240129124649.189745-1-david@redhat.com> <20240129124649.189745-3-david@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240129124649.189745-3-david@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240207_221220_896950_89471A72 X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 29, 2024 at 01:46:36PM +0100, David Hildenbrand wrote: > We want to make use of pte_next_pfn() outside of set_ptes(). Let's > simply define PFN_PTE_SHIFT, required by pte_next_pfn(). > > Signed-off-by: David Hildenbrand Reviewed-by: Mike Rapoport (IBM) > --- > arch/arm/include/asm/pgtable.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h > index d657b84b6bf7..be91e376df79 100644 > --- a/arch/arm/include/asm/pgtable.h > +++ b/arch/arm/include/asm/pgtable.h > @@ -209,6 +209,8 @@ static inline void __sync_icache_dcache(pte_t pteval) > extern void __sync_icache_dcache(pte_t pteval); > #endif > > +#define PFN_PTE_SHIFT PAGE_SHIFT > + > void set_ptes(struct mm_struct *mm, unsigned long addr, > pte_t *ptep, pte_t pteval, unsigned int nr); > #define set_ptes set_ptes > -- > 2.43.0 > > -- Sincerely yours, Mike. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel