Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2018496img; Wed, 27 Feb 2019 09:07:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IYh3NoA+PilCKvVApeoZ9BcMEjqKuMywqk/RJOae+kMjTACQE90EHIgIpFOxIniXrNxfU2M X-Received: by 2002:a62:5249:: with SMTP id g70mr2635092pfb.115.1551287247103; Wed, 27 Feb 2019 09:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287247; cv=none; d=google.com; s=arc-20160816; b=PvrKEPxRzIiS3wecWziY2MRKwGrADCVDisHwbtLK9Jw+Tt4rIREZBsTFipqMh87ib9 Ewfx7cC4D1oQOvgecEoitiKzq2VhBJwvHoAcm2yFy3UNMfXNX0M1/yb7KlbvX6L/kAuG 2HzgclVfYEVEwl/BiqJdZzdxavoByLcLgY/DtB3956MHfBNYCz/+r0gXQV5CUHYRsbCP bnMAdjXOjsV+YeiCCLfSSF9/RFVo1RcIYwj+62BovJ7fmpx4Ezt3rjzdEZGds/opNNw1 /e1vk/hrc7K9xaxylRehJ+m03ivLkggw9vzNyFD9Xo4SpqQEnArAPAATDGSqjjmRYoYA YNUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6FoKm4T/vulm4WLeNhgEiUXQspfPhFcFQ9eklNtsPfA=; b=RgPqq16+g26sorsteKadb6H484xPq5iRBxm5RGpYvI7K/CNEA9VBNKsdsYZkd66ODj 56mRXKb3cpSWn9ow3pmQThREyxWpiiZbW+l7UoG2geWTO7DpdevCqasJsVBjcJC5zl5F VFlgPUdDHFtTVHr+JN1bD5i5bAEy+iVXQGUkb+YCXaaq9GHo5RhQ/b6BsXqKmZTu0cZl 4MKTBNOP7F1TTUx5xqY4JCKYSdiHns2AXGk2BllwY5H97+Z3AI06W+2WAIbipq3S2lBf YUYOzSIXhLr4givQkvkt21rmEV44CI50TZMgKbjNkZtekOouIcL2cN3m6LEPQOOdLnXd kZVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si6164768plh.113.2019.02.27.09.06.55; Wed, 27 Feb 2019 09:07:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729276AbfB0RGd (ORCPT + 99 others); Wed, 27 Feb 2019 12:06:33 -0500 Received: from foss.arm.com ([217.140.101.70]:35762 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfB0RGc (ORCPT ); Wed, 27 Feb 2019 12:06:32 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2E2BD1684; Wed, 27 Feb 2019 09:06:32 -0800 (PST) Received: from e112269-lin.arm.com (e112269-lin.cambridge.arm.com [10.1.196.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5A1D23F738; Wed, 27 Feb 2019 09:06:28 -0800 (PST) From: Steven Price To: linux-mm@kvack.org Cc: Steven Price , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Dave Hansen , Ingo Molnar , James Morse , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Peter Zijlstra , Thomas Gleixner , Will Deacon , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , "Liang, Kan" , linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner Subject: [PATCH v3 01/34] alpha: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:35 +0000 Message-Id: <20190227170608.27963-2-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190227170608.27963-1-steven.price@arm.com> References: <20190227170608.27963-1-steven.price@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information will be provided by the p?d_large() functions/macros. For alpha, we don't support huge pages, so add stubs returning 0. CC: linux-alpha@vger.kernel.org CC: Richard Henderson CC: Ivan Kokshaysky CC: Matt Turner Signed-off-by: Steven Price --- arch/alpha/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h index 89c2032f9960..e5726d3a3200 100644 --- a/arch/alpha/include/asm/pgtable.h +++ b/arch/alpha/include/asm/pgtable.h @@ -254,11 +254,13 @@ extern inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } +extern inline int pmd_large(pmd_t pmd) { return 0; } extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } extern inline int pgd_none(pgd_t pgd) { return !pgd_val(pgd); } extern inline int pgd_bad(pgd_t pgd) { return (pgd_val(pgd) & ~_PFN_MASK) != _PAGE_TABLE; } extern inline int pgd_present(pgd_t pgd) { return pgd_val(pgd) & _PAGE_VALID; } +extern inline int pgd_large(pgd_t pgd) { return 0; } extern inline void pgd_clear(pgd_t * pgdp) { pgd_val(*pgdp) = 0; } /* -- 2.20.1