Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2023032img; Wed, 27 Feb 2019 09:10:59 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia3xR3c1bdhXGkKH7gaHB03pGkM9ypruE+zGxnmD+mQcH9e9OhLZnTxC1moSNRnCP+Vqf2g X-Received: by 2002:a62:1c45:: with SMTP id c66mr2716774pfc.90.1551287459123; Wed, 27 Feb 2019 09:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287459; cv=none; d=google.com; s=arc-20160816; b=vdYyXqaR8XBDpa8urpmOXoYtwzWt+jlVMW1dQ8R7uItMDH5lfUuwrpQhfmgG6QE8y4 6COkOadxmJCdBCyiM1lyV5KUGRluO9He4F6uznCABpGcnjl4e7IBvgNXdeA+4mBxSBkO ZPhHvE9PIEZjxYcWJpbgZCjdb2gwn7A129PJ1BXkqAwBc6iWEZ2OFwIOANXl8HpuG2kC jl0QmqgdymJG5S2zgYMhEty8jbSqzGNDCowhun3twqgCk88Y3UyMfsOkf76+zpR1ywYq L0B0yqomW26V4Cj4mJ0+Uv2IJwgh1bVGYspAfcC178Oa52tY1bmeu9vpH5V7JS9c1n6E aX0w== 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=J233IL1FGhNVHQPbZ8NtivYHyMkhcYW8XDURBlgnssI=; b=Z96gbI1Uwpl9bIlS7nB+KfxZADmmVLQ0RAA66KME9SzttARltILP7N1Q/OUg9LBw/i VpKzckGOzlyB2a/FxWAJn3x8XUDo7QPQq0unLyi0RCj9MvLmzCznaeytwB3DkQFi9nUV pTzpURFiandQQRYJ9Pzugrl+9MU0fFt+/zMDH0Dqf+TCx0zi+UfHGP3W82o7fy78y9GD TVh4/8zJTSI2sXd8HSOFaRqUjCkKKm3oKUDjOgLf2LGrn0hkpSe28RZxvgbyvIqjwAQv yVPTGA0qed0nSUzG/QUdfMRFihkPjV5vQSQp9OOTo8Q4NvknX5N3RBL65YssNI7C9ONj +UXg== 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 m11si15075853pfh.47.2019.02.27.09.10.44; Wed, 27 Feb 2019 09:10:59 -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 S1730044AbfB0RGy (ORCPT + 99 others); Wed, 27 Feb 2019 12:06:54 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:35936 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729980AbfB0RGv (ORCPT ); Wed, 27 Feb 2019 12:06:51 -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 AE821A78; Wed, 27 Feb 2019 09:06:50 -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 4FE223F738; Wed, 27 Feb 2019 09:06:47 -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" , Guo Ren Subject: [PATCH v3 06/34] csky: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:40 +0000 Message-Id: <20190227170608.27963-7-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 csky, we don't support large pages, so add a stub returning 0. CC: Guo Ren Signed-off-by: Steven Price --- arch/csky/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h index edfcbb25fd9f..4ffdb6bfbede 100644 --- a/arch/csky/include/asm/pgtable.h +++ b/arch/csky/include/asm/pgtable.h @@ -158,6 +158,8 @@ static inline int pmd_present(pmd_t pmd) return (pmd_val(pmd) != __pa(invalid_pte_table)); } +#define pmd_large(pmd) (0) + static inline void pmd_clear(pmd_t *p) { pmd_val(*p) = (__pa(invalid_pte_table)); -- 2.20.1