Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2022173img; Wed, 27 Feb 2019 09:10:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IYfHuOCXpQOwQ+eXIFRMs4DlEQBRYBVkpMGAcVnFTbTgVnlTBXbufeB9zUHOTXQ/2jJIWe5 X-Received: by 2002:a17:902:5a8d:: with SMTP id r13mr3182637pli.190.1551287418637; Wed, 27 Feb 2019 09:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287418; cv=none; d=google.com; s=arc-20160816; b=jnnXlwYMPG1BppdF3WulfRAQkuQNwq2GmN7d0bzOGTu8UUINjI9HB1e6wz9Bg3XP2G VsV/3OZDniv8r7iR1Hf/KgkIA0VGnNS1nFkCw6Tza+Nhg+g3wP5LL2KjNtMHSzKdOPVR CdkqwZOQXPRk6wRsHORjZcGMVH4rLUPqPUSSmCudLhtKR5CcAUkHJRkH6bFMYoj93z1E bTBWPJA+dAIPC30EeTpGuVTX2Gdw7+XYMdGHkbUUlQJAd6Ey5V+rDnwWl6AaOqgTZ+OD J4ZBW/GK3YBDPX143TE97maO/qFXG427DiIp5FqFukupNhRGnQ9PNcalvsGFWNfRRnXz Er/A== 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=RVhGpLl0wO3KpwIPlXPvU+KYzfgn13jA2Mau1bulkRQ=; b=pxp3EVMmL887vh3wwQT6m1xWIDDbn8ARVCLs9wqN72kyHzAG0y4lq6NdBfUn3MdP/k 9tLLMjrog324g1hoEL86scj14eNTk1IEt5oqXWL8eeaVyiRdI0QEj67mIj6530M8vwSB 03AyBfMoxa+d+GCn1SOqUmVvwg3b24SSDzbx+E/9s4AD3z2fKSAcnM84Y1BAoInhEOgO rVHHTNRR0m0+b8V/Y6XTh6zfRHiWK6sBrlLmfyJjx3GN5cXpnos8GaJRMOUZervaXIM/ 6L4BHFi0Nf72X1dEV5RPArwQIy+ACVqN51p5pvPLfvs0PjbJaMaYv93SBgeT0JDs/97X YZNA== 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 t10si15206736plr.348.2019.02.27.09.10.04; Wed, 27 Feb 2019 09:10:18 -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 S1730500AbfB0RHz (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:55 -0500 Received: from foss.arm.com ([217.140.101.70]:36520 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730448AbfB0RHx (ORCPT ); Wed, 27 Feb 2019 12:07:53 -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 2B1321715; Wed, 27 Feb 2019 09:07:53 -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 C0CE73F738; Wed, 27 Feb 2019 09:07:49 -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" , Guan Xuetao Subject: [PATCH v3 22/34] unicore32: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:56 +0000 Message-Id: <20190227170608.27963-23-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 unicore32, we don't support large pages, so add a stub returning 0. CC: Guan Xuetao Signed-off-by: Steven Price --- arch/unicore32/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/include/asm/pgtable.h b/arch/unicore32/include/asm/pgtable.h index a4f2bef37e70..b45429df8b99 100644 --- a/arch/unicore32/include/asm/pgtable.h +++ b/arch/unicore32/include/asm/pgtable.h @@ -209,6 +209,7 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; } #define pmd_bad(pmd) (((pmd_val(pmd) & \ (PMD_PRESENT | PMD_TYPE_MASK)) \ != (PMD_PRESENT | PMD_TYPE_TABLE))) +#define pmd_large(pmd) (0) #define set_pmd(pmdpd, pmdval) \ do { \ -- 2.20.1