Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2024309img; Wed, 27 Feb 2019 09:12:04 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibwx8sGvnckEAMNu0wwSoze2OosGj1XMeIkCAXGUMIj3YTM1E5vDUN+odNjEYRbq5Vgrriw X-Received: by 2002:a63:c705:: with SMTP id n5mr3831913pgg.73.1551287524491; Wed, 27 Feb 2019 09:12:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287524; cv=none; d=google.com; s=arc-20160816; b=XHViafwZUrorPA6T9o+6eKv7mSGgGuyY7Mfh/ZjELr9lSP+GanM2hicCq62E5ivg4o SHfvqJwMuNy4jdvvL0gUGe5eryLsmMz7Vvy8hxDMhyFwVu7ofdV56p40ei7aY+fhF4QQ cnyqPa03Q9eQ9SEOWgolmhKHI5jvYGQ3D8MMHp/pyXiH6WA14JFR67JyI6m938PMd8Xu OZS1s/mzUjeqqEUb2gPabS+4MeSaMYiC0AHOuGHUbREYTEiduiD3WAAsOIHcjN5tJzf7 DmnzKNb06KzzsiDeYqkClt9kifjFoAnjcEv6owfJ1sQdmOGJ3vPFCCL9IQmTP2fqcetI yKpA== 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=ZHm1cyXfjE8tEi0dNKBdwMdPKaBv8xSlMukgn6XJeJU=; b=dmkcKctcZla2/KbRLcurFFbtY4F8QYtkdJ64UBOQ7FauGUgHnlBn88xJPDT63tj/hD eriW73jqjzeG3/os2tskc+WV0ahHYpl9oq3atNXCh/yxhHq+vnB0f8Mc5GhUunrIiaiJ UaXus4RXl6i7otBN2uw6oxOYHj6T29bcuYbp2YFOyqDQdGEvPIS0THNnf3gLEj/M/4lS RvNt5pjnlbNNmlZj8SLdDxYRGjb4+f1qP5FjZ1/wLTGKJz4mWVCbtxxele6CHPpWf9c+ cTZ0kMDDMF9WI69O4mfMJzVboNbLFKVxiuZg/dbkzTXaYIefc3xj0Igzfx3sJxw5qVcO iuMA== 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 i36si15970083plb.210.2019.02.27.09.11.50; Wed, 27 Feb 2019 09:12:04 -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 S1730102AbfB0RG6 (ORCPT + 99 others); Wed, 27 Feb 2019 12:06:58 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35964 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730070AbfB0RGy (ORCPT ); Wed, 27 Feb 2019 12:06:54 -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 7B91D1684; Wed, 27 Feb 2019 09:06:54 -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 EE5103F738; Wed, 27 Feb 2019 09:06:50 -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" , Richard Kuo , linux-hexagon@vger.kernel.org Subject: [PATCH v3 07/34] hexagon: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:41 +0000 Message-Id: <20190227170608.27963-8-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 hexagon, we don't support large pages, so add a stub returning 0. CC: Richard Kuo CC: linux-hexagon@vger.kernel.org Signed-off-by: Steven Price --- arch/hexagon/include/asm/pgtable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index 65125d0b02dd..422e6aa2a6ef 100644 --- a/arch/hexagon/include/asm/pgtable.h +++ b/arch/hexagon/include/asm/pgtable.h @@ -281,6 +281,11 @@ static inline int pmd_bad(pmd_t pmd) return 0; } +static inline int pmd_large(pmd_t pmd) +{ + return 0; +} + /* * pmd_page - converts a PMD entry to a page pointer */ -- 2.20.1