Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2019914img; Wed, 27 Feb 2019 09:08:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IbRRBycOR+tyq33Ski8ySmmCiBLFi2gqfg8KonIlJHkpoCcMdGV+u/B0B75M50vwwyip0vK X-Received: by 2002:a17:902:207:: with SMTP id 7mr3122091plc.142.1551287312415; Wed, 27 Feb 2019 09:08:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287312; cv=none; d=google.com; s=arc-20160816; b=eftcdGRO9nLYXdiOTu0YUlrnbNRlPe8k+/8Yay2XaR8i+rrZS6R4prkWvkewpODmSd FYqGVKJ/x6thXtiUI1tS7dM7bCvg40SiDkuLS5Y+KvO4ff0SMSBs9Qz1LYC+kxVihzbb 26UUOniNVgZ7hZ9HbvrEap2BjnrCIUVwEBLKMxrmB/JZh4MxJsCBVc+QbWKj1WaJxvd0 iJvZF0RuJML0oWRoGLtSeNlCMzXVYGnsUu+idWtfVmDGJpdE0zIuFMb11Y0ySKPLz58B 8pub0X9/ns5JgQfAweTuB6dpoSyHFaXoh/rHfOAEcC7ZdSCGQ83A07ZdfTvg5s871902 yq9Q== 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=cpDv3mBvbD8hNAclYHZlrnWhwlRtUYmq/kJWE5bqZAU=; b=BzHIrp/+Tx1V72XbdpgHoQ7ZvMCyLCpWpadXpax49HEbm3D/ilyys/p/cXr1i7Tri1 iNZHhSecE3piP/7xBF3meCi4+DrFEwmeMVZF/9H04IPpHBKus/zVn73WEC887pxjKjxd 1FFC/gq7lADME/F9ARnkWac00JyUg8Rb0hAgn48WM0L2dkYvbbHNOtAE96bXWMiwjC2t 3ST2j+uVY+EanV09+bvVJ8M/0bFnRZc+/LNYB10EMtvCmKfpflRNV/CcmKKa2UGMjIS1 XXjRus6Y6rFsCeyfandq3uFWJ+vWXiPxiAL0HnUWYk3GPJwIsQyI3BZ8tigXWKl6Oprt cfUQ== 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 128si16344308pfd.19.2019.02.27.09.08.17; Wed, 27 Feb 2019 09:08:32 -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 S1730332AbfB0RH1 (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:27 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36252 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730296AbfB0RH0 (ORCPT ); Wed, 27 Feb 2019 12:07:26 -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 8FFCD1688; Wed, 27 Feb 2019 09:07:25 -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 DEAE63F738; Wed, 27 Feb 2019 09:07:21 -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" , "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org Subject: [PATCH v3 15/34] parisc: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:49 +0000 Message-Id: <20190227170608.27963-16-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 parisc, we don't support large pages, so add stubs returning 0. CC: "James E.J. Bottomley" CC: Helge Deller CC: linux-parisc@vger.kernel.org Signed-off-by: Steven Price --- arch/parisc/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index c7bb74e22436..1f38c85a9530 100644 --- a/arch/parisc/include/asm/pgtable.h +++ b/arch/parisc/include/asm/pgtable.h @@ -302,6 +302,7 @@ extern unsigned long *empty_zero_page; #endif #define pmd_bad(x) (!(pmd_flag(x) & PxD_FLAG_VALID)) #define pmd_present(x) (pmd_flag(x) & PxD_FLAG_PRESENT) +#define pmd_large(x) (0) static inline void pmd_clear(pmd_t *pmd) { #if CONFIG_PGTABLE_LEVELS == 3 if (pmd_flag(*pmd) & PxD_FLAG_ATTACHED) @@ -324,6 +325,7 @@ static inline void pmd_clear(pmd_t *pmd) { #define pgd_none(x) (!pgd_val(x)) #define pgd_bad(x) (!(pgd_flag(x) & PxD_FLAG_VALID)) #define pgd_present(x) (pgd_flag(x) & PxD_FLAG_PRESENT) +#define pgd_large(x) (0) static inline void pgd_clear(pgd_t *pgd) { #if CONFIG_PGTABLE_LEVELS == 3 if(pgd_flag(*pgd) & PxD_FLAG_ATTACHED) @@ -342,6 +344,7 @@ static inline void pgd_clear(pgd_t *pgd) { 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; } static inline void pgd_clear(pgd_t * pgdp) { } #endif -- 2.20.1