Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2021264img; Wed, 27 Feb 2019 09:09:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IaG0LQK9eJ/uzguksD76SOCKm1Gf2om38YgGU12LOOGK4lfut/RCZRTpYNgNNgDpalljHxV X-Received: by 2002:a62:6383:: with SMTP id x125mr2591848pfb.239.1551287376642; Wed, 27 Feb 2019 09:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287376; cv=none; d=google.com; s=arc-20160816; b=Cnix1WH88OUR0hJxotjze+aPp1pDJBQwjkVKpgYtKrp9gHnLGcSz60b6H8lZWUVzTi lUIsDNKlwcXVfqb/j/5f1zmdfRHGnywRMWbjT4B4/L9Jd6gZ62cWx2QFy3GvMl3qUpiS LY1i0WFvMjTSZv6CkRvq1LgVXef7rvjG0yYGmlYUr7Ab+aK50kwVd760trKAfgjMYb/G 4Xrm0rgvgNJ9QmGbj2QFCabRr6kj0OLyEdUxamV+L+ALgQMxBx1fEmiaUVUG5BB2ecUp VV0zuskFxTsxb5jsJ5L58y9hfTZbkml31okuzJgQbsA6fIIZUM1T44OAuohpD56hxcQq 8Mrg== 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=8hX07yhBmDg+UJCmPXqdceXMzT4L50HzWM5i97rNZtY=; b=TB5nMIlhltP5KKLxuTOeRF5qruvtAC8EX/KcC1TpeMe8663Evee1ebXfLeY3nxiSiu CeZWxsHAOBjC8OSfl+JE5fBVGHhTcuwjpa8SOwYpPQGDjga4f74EYkB0rb2in730wCk6 +PdyI5uTKZ8M/3Ty8QdGAxQGC/gUcuMZV66JBpcdsL1VJnI5PcjtH2lUgzkb7j/YMPFI NbJp5h/0rO5cHYjEY4at3AcR06LstoEi//ZGWLxZnS/x5q0sB8nYfPIFO7NXPh0riIBe gu3YBz5ia7jVKhqINf2fhrvmIWEurpTX1nB166YK/iz1cN39FOh25qK7hu6DAGI3IpuU Ctpw== 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 r2si6971974pgn.539.2019.02.27.09.09.21; Wed, 27 Feb 2019 09:09:36 -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 S1730288AbfB0RHT (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:19 -0500 Received: from foss.arm.com ([217.140.101.70]:36180 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0RHR (ORCPT ); Wed, 27 Feb 2019 12:07:17 -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 8AA0B1715; Wed, 27 Feb 2019 09:07:17 -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 0842D3F738; Wed, 27 Feb 2019 09:07:13 -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" , Ley Foon Tan , nios2-dev@lists.rocketboards.org Subject: [PATCH v3 13/34] nios2: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:47 +0000 Message-Id: <20190227170608.27963-14-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 nios2, we don't support large pages, so add a stub returning 0. CC: Ley Foon Tan CC: nios2-dev@lists.rocketboards.org Signed-off-by: Steven Price --- arch/nios2/include/asm/pgtable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h index db4f7d179220..b6ee0c205279 100644 --- a/arch/nios2/include/asm/pgtable.h +++ b/arch/nios2/include/asm/pgtable.h @@ -190,6 +190,11 @@ static inline int pmd_present(pmd_t pmd) && (pmd_val(pmd) != 0UL); } +static inline int pmd_large(pmd_t pmd) +{ + return 0; +} + static inline void pmd_clear(pmd_t *pmdp) { pmd_val(*pmdp) = (unsigned long) invalid_pte_table; -- 2.20.1