Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2021520img; Wed, 27 Feb 2019 09:09:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IaP+xZ0HrEJvwS9rJ1L7FR49dtp5ywJJuLBWB0+LGQwK41H4JqWASVwlPe87hvsYw0R4uV3 X-Received: by 2002:aa7:9211:: with SMTP id 17mr2644333pfo.220.1551287387435; Wed, 27 Feb 2019 09:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287387; cv=none; d=google.com; s=arc-20160816; b=N+qjKhHZ9wDdtTzpKGVeMa0aPHqNlOWNftwugdkvjr3Z8euOiXgKoh57mfYRPex+5J R7elFsTWz9y0gwmpcLSVgs41S6wugD7Q+jkolkF5dw7b44LVZf/6VkDQZosSSFTa1/55 Nbn5OBmd5sorVvVIMv15SEXFyHrCG7ZVRgrSJ3JkHvlrFs+vXCPgk0D43AyE/oGBCsKQ 8MnYSxHhE7pMCbmFRkOcZ+rp7+kGYDu4r/UNY4oxVETyo4ljK7wyUnUIT9Xr2pl5zIiw HokLsc0FDJykEegDjdfNK39gWU6L8SzS/KVtZdfBorohmwIzye+I7bYvPZfMgHzcUbsh vA/g== 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=T6NiSwMMvhnoe2vgI+8wifL/HFKKnl7ekrNCMWErvF8=; b=lLxkEkJ+p3JaRRZZsY0ScMrgXz9NxQ1812REBB73swFhL2pkPm2VkD+n3b5ESoPCxP kwq6t9mm1Sj27SQ0kowZVpbQYAAtiyYd5d3A4om2kJ8CPVYIgjhdPTBtgLvLkJRrFUSI D6mmvqjRinnWfGC9LsbdA8ymMIXqvfBnzpartc6LSYbdhP1PaFn/lKucekyv+WmABZPp JzNsLYiwHJZmuHq4Lmqif85RO6+fZD2Buk341de41ccCGUMVn2JvOHTlIpO41eFI40hJ 78UPVPJUTwQ/b+RCferOAaWVGHi32z9qVBa3WzkjBc2JwDbMUX0HAqrwtgqkkT4g8kcP PCug== 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 v63si14906488pgd.563.2019.02.27.09.09.32; Wed, 27 Feb 2019 09:09:47 -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 S1730311AbfB0RHX (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:23 -0500 Received: from foss.arm.com ([217.140.101.70]:36216 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730296AbfB0RHW (ORCPT ); Wed, 27 Feb 2019 12:07:22 -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 9F2011684; Wed, 27 Feb 2019 09:07:21 -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 CAC793F738; Wed, 27 Feb 2019 09:07:17 -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" , Jonas Bonn , Stefan Kristiansson , Stafford Horne , openrisc@lists.librecores.org Subject: [PATCH v3 14/34] openrisc: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:48 +0000 Message-Id: <20190227170608.27963-15-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 openrisc, we don't support large pages, so add a stub returning 0. CC: Jonas Bonn CC: Stefan Kristiansson CC: Stafford Horne CC: openrisc@lists.librecores.org Signed-off-by: Steven Price --- arch/openrisc/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/include/asm/pgtable.h b/arch/openrisc/include/asm/pgtable.h index 21c71303012f..5a375104ef71 100644 --- a/arch/openrisc/include/asm/pgtable.h +++ b/arch/openrisc/include/asm/pgtable.h @@ -228,6 +228,7 @@ extern unsigned long empty_zero_page[2048]; #define pmd_none(x) (!pmd_val(x)) #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK)) != _KERNPG_TABLE) #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) +#define pmd_large(x) (0) #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) /* -- 2.20.1