Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp209250pxb; Tue, 2 Feb 2021 03:15:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNVhKJ/dJtxNaLZCovBvtRThjz9R5ZqdYJeHwB+4vLmBFMFwQ2+QDThwopeTkhUa9kkGSL X-Received: by 2002:a05:6402:b27:: with SMTP id bo7mr15083813edb.372.1612264529799; Tue, 02 Feb 2021 03:15:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612264529; cv=none; d=google.com; s=arc-20160816; b=P1Ic25E9ZsRV4g5qZ2fHIBIuaYUWCeds/RcysSK63tWtdMqpIdRUH4/3cN25HI0CrZ CGPxkaDimW5w6/jFsYXgOIChOIEMyu0F0ope6x62Or4hM8G7+ZHKUTC5st0NwZ+NMImW +bxUathY1dq4E7KBCAd2+kcVLeEtUpN+syHyezM+Wj+SOcAqcN8OXBA4ve/G1uCd2pb3 0GBQP2mpoOrux3dLH4oF5hxvp3VxlM+gSG0Rs8cnobXaO+8k+5ronzGX7T69tODAosJs exV4ydGCt+PonS8FstdquvuvT1hq5RQoGNxdgXK445cyOhUROBuquSQ1W7djp7TdHn6T X6qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3j9vOVOCZYCRcd/9oHYQqp9mHmLEYzOeZeVPeCqGHSo=; b=Xa0lwjYin3jC2gJJAgaFUBb2zDRTzPT0sQjbJERvoTnHmyW6UYi4YoSIm0t6Ypr9uT Ag9DqtAa6ds6ianVWqZAhGMp857PO2TlVcf5WYkdd6yPiAKM4kop1Bggr+Ds2F48/7Zi 1FY9OOp3fZHX8mG82XUa9tSjwuhZrQzp+krQWHVoEFJrjYJS3TU1HHXc6Gkqfmqv/hMr ViW28V/7ktbIyX2nsqlzPyPwtNBB+Y2oowV+iJjyhdsHG8qnaMljfZmZ83pvY7ON221P SS4lQk3fn11ZxN8AMV8uvxgH3d/f7wloP/ItAC0Jf4hf4+FfSwKQMJOQnAwM3wI5aBIr jnBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=e4n+GEXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si13500216ejo.123.2021.02.02.03.15.05; Tue, 02 Feb 2021 03:15:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=e4n+GEXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbhBBLO2 (ORCPT + 99 others); Tue, 2 Feb 2021 06:14:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbhBBLOZ (ORCPT ); Tue, 2 Feb 2021 06:14:25 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9F92C061573; Tue, 2 Feb 2021 03:13:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3j9vOVOCZYCRcd/9oHYQqp9mHmLEYzOeZeVPeCqGHSo=; b=e4n+GEXCFgV3PZ41aiD6Dqw6g o4/Nm9vRF/rykkphyuewQKKaCsvwPjQ7qjDpkSl2rehqrN+HgWejfdEkRcMKFr+PU5t52JWcU0+16 VxaKrqDybMSHpFdQdqnPi2lKQAZLpUzrluIUz/u3AVmjwFaRSiBTOfz8NIo0v3xQQ/0u+pMSwCW0W PJsgCCqfMtuwlQG5WX+FAA8ByzjmaUI3ysryKq/qYtKRzxHRKOPhR6B+pnvHt0ljbpSUh7rcQ7kTp ufQ5KhlgyerqAdZ06+9XIiPICqtXkbEgP/Fc57JZGidmE9JT+In/wMitHA2JS63JAuFRQQVRkiukk p2PQ5Minw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:38186) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6tcZ-0004HT-Ki; Tue, 02 Feb 2021 11:13:23 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1l6tcV-0002zg-Gy; Tue, 02 Feb 2021 11:13:19 +0000 Date: Tue, 2 Feb 2021 11:13:19 +0000 From: Russell King - ARM Linux admin To: Nicholas Piggin Cc: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Jonathan Cameron , Christoph Hellwig , Christophe Leroy , Rick Edgecombe , Ding Tianhong , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v12 01/14] ARM: mm: add missing pud_page define to 2-level page tables Message-ID: <20210202111319.GL1463@shell.armlinux.org.uk> References: <20210202110515.3575274-1-npiggin@gmail.com> <20210202110515.3575274-2-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210202110515.3575274-2-npiggin@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2021 at 09:05:02PM +1000, Nicholas Piggin wrote: > diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h > index c02f24400369..d63a5bb6bd0c 100644 > --- a/arch/arm/include/asm/pgtable.h > +++ b/arch/arm/include/asm/pgtable.h > @@ -166,6 +166,9 @@ extern struct page *empty_zero_page; > > extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; > > +#define pud_page(pud) pmd_page(__pmd(pud_val(pud))) > +#define pud_write(pud) pmd_write(__pmd(pud_val(pud))) As there is no PUD, does it really make sense to return a valid struct page (which will be the PTE page) for pud_page(), which is several tables above? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!