Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2020973img; Wed, 27 Feb 2019 09:09:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ8k177ZARLGZUWgiMS6PwIs/26gOt7RnAER7p9yjJXP8uu0U9AwvINsJKJR+URxD5B55Rr X-Received: by 2002:a17:902:2a89:: with SMTP id j9mr3292238plb.28.1551287362706; Wed, 27 Feb 2019 09:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287362; cv=none; d=google.com; s=arc-20160816; b=x+ndtmAhWmYvgv0X79XYHj/X+H21LREfkiD1W64I96/GLTqbjDmXwJ9xTroQHVIfCR te2aTaMFoHfxjLUOZ0VnktCLF4SzLYKhNbQmvNMwiVTOu2iMJsHXROICqzyMdlNsq8bO 7fPHrTHOxC5nTxSVvPzCdhExOaWNUCTYw3/xIR7RH5UZ5aW+TD/wumle0A9qyAIeFPfJ GiqQ++qHDkSCKmWrN4/039yAAhj5FNWXecm3+mvovRlQ1LH50xUulDGF5WWXa7TbcibM uh0GX8NW3KNp9u4BVl7rvM6Bnsaa8ZJ2cmAuzuDMhQKMCraDmDLHsIYUmskZrqqBHakQ Uv+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=8WwnUWaYGMHoutYzvtb527XsVGA/6K7onIq0f5cih6c=; b=X3DEsy76LrSChY/lFmum1unJEjf/H4OgoC0pUrtRO90MPyZ96ug6qDHbG/GJUBFTDh JGKYwG0xANuEEIsHhkUCso4ZiF6q6TXQTpQZWADrfYawAcnA1+kR6R0yo+ajgqR+P4NM NT2AvC75aj3df96DbHWA6LPB5aehhsKM1uHxXLU3MWZxboH4CvcewKKCMHt+4VBsc4c7 X91dwBLb25dr5kYBdm4LeUX9VhdW8HRIbobfdaYdYjt5kF5+A33cnpKW+f7vzqSjLClW Yxp7lcNIzil/Jn4uKba5E2vbhFXJH7TERCqwd+YAJLqO9XqnD6tFSUBjT8YyMr+jTzDi 7zSg== 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 q14si14884933pgq.197.2019.02.27.09.09.08; Wed, 27 Feb 2019 09:09:22 -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 S1730213AbfB0RHI (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:08 -0500 Received: from foss.arm.com ([217.140.101.70]:36072 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730115AbfB0RHG (ORCPT ); Wed, 27 Feb 2019 12:07:06 -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 D81C11688; Wed, 27 Feb 2019 09:07:05 -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 794C43F738; Wed, 27 Feb 2019 09:07:02 -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" , Michal Simek Subject: [PATCH v3 10/34] microblaze: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:44 +0000 Message-Id: <20190227170608.27963-11-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 microblaze, we don't support large pages, so add stubs returning 0. CC: Michal Simek Signed-off-by: Steven Price --- arch/microblaze/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index 142d3f004848..044ea7dbb4cc 100644 --- a/arch/microblaze/include/asm/pgtable.h +++ b/arch/microblaze/include/asm/pgtable.h @@ -303,6 +303,7 @@ extern unsigned long empty_zero_page[1024]; #define pmd_none(pmd) (!pmd_val(pmd)) #define pmd_bad(pmd) ((pmd_val(pmd) & _PMD_PRESENT) == 0) #define pmd_present(pmd) ((pmd_val(pmd) & _PMD_PRESENT) != 0) +#define pmd_large(pmd) (0) #define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0) #define pte_page(x) (mem_map + (unsigned long) \ @@ -323,6 +324,7 @@ extern unsigned long empty_zero_page[1024]; static inline int pgd_none(pgd_t pgd) { return 0; } static inline int pgd_bad(pgd_t pgd) { return 0; } static inline int pgd_present(pgd_t pgd) { return 1; } +static inline int pgd_large(pgd_t pgd) { return 0; } #define pgd_clear(xp) do { } while (0) #define pgd_page(pgd) \ ((unsigned long) __va(pgd_val(pgd) & PAGE_MASK)) -- 2.20.1