Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2020313img; Wed, 27 Feb 2019 09:08:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZSO6mnT1YROECWnmcA3qCzCcqkdWoE7Q0J2KfYaHwvFMbg+besbueTawgarYqVEZG2OYIC X-Received: by 2002:a17:902:9a43:: with SMTP id x3mr3105361plv.173.1551287331507; Wed, 27 Feb 2019 09:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287331; cv=none; d=google.com; s=arc-20160816; b=UCROO5qdZYtouuGUPc4fNmpTh3V2SjENsMzksYVL4tUm8ty902zXv4jbjCij5V4QwO YrjXEhjZNDJpbgqyXQqauYEuQIqMAXnL+wymwWwl7PGbmZ0CaQD3efOC7K0W4/5MO4LL LODuN3e59aMyJTss27cqq3dAA8zS/FPiZwBcr8d54u/7vBON7WztID/NUhtdN3ZFZidp Q8pqgccoHzYGc+jOp8F7JRZW9+hAiCj7doRQRHAGfeXUaqAeJCG9iLQ3c5xPJqlrm8bR RDCDKrp1hH5LxZ1LNMPv9cGP/RRLiYwsOCMfML9vbgYgHBm1xZeB+OCqsU8p9FjVER4M Io1w== 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=vbZU3Jpl8GuYX6FyWhyD9GsHMstn/Gx+XRtazXG+JbY=; b=BL/GtsDUnTRPYkZkOODhSP12J1YB0IbGWaU/fj4BZk6ffrzLD0Z5dDzrUsq8b0mahg SmGY9wdPzhw+8DazSHGB4oIH4QxhoW28w8Hah70Up8NGIBDkEqEd8t+Pd6q7QJTrgZFJ 9xoWH6WeZuClURaNlB/Hz7mk2YO3pjKt06SWGbpf8XfbBjcoP2cCHQrsf9B8abEMKUDh /PAwYQMXn7QP0qBQN3SHomUjBFXTh6u5dykLpGFbCzOfX4ZZILT+w7bZc/yzL72UPoOQ csP46J4LTuXhBXqZbtYH+RXG6+2RE+S95euu/lneOHEweXrAA2NQHFPHN2VkM7UNpv/q 3Gig== 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 v79si15804295pfa.207.2019.02.27.09.08.36; Wed, 27 Feb 2019 09:08:51 -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 S1730265AbfB0RHP (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:15 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36150 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0RHO (ORCPT ); Wed, 27 Feb 2019 12:07:14 -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 BD4F5174E; Wed, 27 Feb 2019 09:07:13 -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 384C63F738; Wed, 27 Feb 2019 09:07:10 -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" , Greentime Hu , Vincent Chen Subject: [PATCH v3 12/34] nds32: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:46 +0000 Message-Id: <20190227170608.27963-13-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 is provided by the p?d_large() functions/macros. For nds32, we don't support large pages, so add stubs returning 0. CC: Greentime Hu CC: Vincent Chen Signed-off-by: Steven Price --- arch/nds32/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h index 9f52db930c00..202ac93c0a6b 100644 --- a/arch/nds32/include/asm/pgtable.h +++ b/arch/nds32/include/asm/pgtable.h @@ -309,6 +309,7 @@ static inline pte_t pte_mkspecial(pte_t pte) #define pmd_none(pmd) (pmd_val(pmd)&0x1) #define pmd_present(pmd) (!pmd_none(pmd)) +#define pmd_large(pmd) (0) #define pmd_bad(pmd) pmd_none(pmd) #define copy_pmd(pmdpd,pmdps) set_pmd((pmdpd), *(pmdps)) @@ -349,6 +350,7 @@ static inline pmd_t __mk_pmd(pte_t * ptep, unsigned long prot) #define pgd_none(pgd) (0) #define pgd_bad(pgd) (0) #define pgd_present(pgd) (1) +#define pgd_large(pgd) (0) #define pgd_clear(pgdp) do { } while (0) #define page_pte_prot(page,prot) mk_pte(page, prot) -- 2.20.1