Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2020769img; Wed, 27 Feb 2019 09:09:11 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ5NG5ACGX2u9qN3BSNiDizx+tfJQ5c2nGjM4QY1AB+mNGyBibhN4rUXRgTxaeBlwA/dgpE X-Received: by 2002:a63:5d48:: with SMTP id o8mr3906920pgm.297.1551287351352; Wed, 27 Feb 2019 09:09:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287351; cv=none; d=google.com; s=arc-20160816; b=G6ZYsYg+rhiRJDmCUPUCTiimJXcjIWFV7wG6SOxZ7Q4oPGOQQ9nPAw8PLrTJqXS3HG yNEDSwFTr3qCYk4k8Ayu77WxPktmreUkMMrzamuo2zsMQvHid1nJK8hYpvBZdmDMlSd/ OHwLEk29q5HH+LLU2iCdvKXiCjy8MsAg9Y9AIam2zBW3mAIM3XJjUhRrJMPH18KiOnyL Xtx74QixSxmMvJLL7Sn6nMRCSpBjiUFvHncjsp1HUeWvf+WrqNvFLmyW1/wvoYRy79Ho qQFNQcRK7ol811ENVlejWn6xv3jd5zdtFvhPFBnnChkyX0dEbGmebMoQdrqi5Bv+T72J oh5w== 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=x+mImCKjHMivjMCtyHQ8sHzcBk8CcZE99nWra+GnYCo=; b=iy8PGGp+C/xRLrZZnrIzb3ajwloYLclonYd+BlSq2GF/YeGx6aobCd9r2EYBvUpcZF Jy+6sI6UHiRu0h2NwrScyVYZggY2vP8MQl9y7R3Vgp7sUjIwCdhzO98R+f3CqDzul35P Krvem6N/3SPf0W+iDc2iRn/4vtrgaYuU32+byklA4RrEmhPHFEDEPBdN16PFDhfubN5f /38yzweLccfq117KbUYf3FthlTAXIkUN3nXqiJA624jGeqwtBRhDweYWj/EyS2p7EMzA iDh/BWC7WF9LVzTP2pCT29WQP6AQ8Lnz94xtxZVq/+92Anya8SLIlkFGXjfUUHi1SBl6 xLGw== 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 b10si14168094plz.385.2019.02.27.09.08.56; Wed, 27 Feb 2019 09:09:11 -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 S1730516AbfB0RH7 (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:59 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36558 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfB0RH5 (ORCPT ); Wed, 27 Feb 2019 12:07:57 -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 1C63A19BF; Wed, 27 Feb 2019 09:07:57 -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 6AFCE3F738; Wed, 27 Feb 2019 09:07:53 -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" , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH v3 23/34] xtensa: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:57 +0000 Message-Id: <20190227170608.27963-24-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 xtensa, we don't support large pages, so add a stub returning 0. CC: Chris Zankel CC: Max Filippov CC: linux-xtensa@linux-xtensa.org Signed-off-by: Steven Price --- arch/xtensa/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h index 29cfe421cf41..60c3e86b9782 100644 --- a/arch/xtensa/include/asm/pgtable.h +++ b/arch/xtensa/include/asm/pgtable.h @@ -266,6 +266,7 @@ static inline void pgtable_cache_init(void) { } #define pmd_none(pmd) (!pmd_val(pmd)) #define pmd_present(pmd) (pmd_val(pmd) & PAGE_MASK) #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) +#define pmd_large(pmd) (0) #define pmd_clear(pmdp) do { set_pmd(pmdp, __pmd(0)); } while (0) static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } -- 2.20.1