Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2020911img; Wed, 27 Feb 2019 09:09:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IZqj5B0p6/g4JCgamDiNYKwpFWohqLGrDVNQh2qVTTstEUf7M8v/Gl45EFmNLjNqOTX5/YV X-Received: by 2002:a65:6099:: with SMTP id t25mr3763719pgu.223.1551287359385; Wed, 27 Feb 2019 09:09:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551287359; cv=none; d=google.com; s=arc-20160816; b=zwCslnMgwefqSi8pgXHSIW6E/tGXUJa7IHLNonlT4zf59u3DwIy99nIncW+VQQ7oi3 03vvQVoYmbRtLyqd3QCL8QYvj1ZefeRmZKAOCiYi7sIy5wl94uLCm9Ur7I6hwTYwYfWB IfIK8iPjXZe7PVXSFTZMZUR/bqnf8galy+0MhNfkqX0GeYD3UvuirF1/eUBUo2xFD5/9 LSTM3TVGpu9ZSHTPo3/mSRRBfb39fiS846b2lC0RE1PXfvVfvYjsd6L1I6cFvq8jomDf X/huaWhJ9xCIpRXOGzZ9BRljj4WZIF9FlFWOyfPPCZSKQVC0Nz3i2zoRB/fqESUtjO6r eWNg== 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=J3FIuviiMVREZMZELIXYHVD1g1qTn0XuyTtmAQTk6Hc=; b=sm8ipeHPq7lqMPTLF8cdxPGIZDKAE88EDfUaQIeokNpzbqGWDrUElkOuTSUYXWDpOI mKOjEW/zSVLjI9GQLQz21I3rtptH+dNMqNTb12LhaHZbRPteYWVEiREnNWwwb+bl3N+T yfM7eXXtvnjseuJ7SASPE8D721U+ELHuTLvOdjMJdXZle/pzGGbcOHfS4yKKkysMs1E7 Cq5NLqUKRvuJ7b/GVwt/s9yXdSxIbUo+lE9rZ5/IJ5/QisMaXzqdxd85jO7Fo2mJE6xH T691i1733Cp0Pq1WKdTcYCcPmc4tipxsTFmDGvcLA+I6GQRxAvla/QYTuHcNk1dFrq7m 1CEQ== 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 n20si15569456pfi.226.2019.02.27.09.09.04; Wed, 27 Feb 2019 09:09:19 -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 S1730399AbfB0RHj (ORCPT + 99 others); Wed, 27 Feb 2019 12:07:39 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36384 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729402AbfB0RHi (ORCPT ); Wed, 27 Feb 2019 12:07:38 -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 AE15D1684; Wed, 27 Feb 2019 09:07:37 -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 056103F738; Wed, 27 Feb 2019 09:07:33 -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" , Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org Subject: [PATCH v3 18/34] s390: mm: Add p?d_large() definitions Date: Wed, 27 Feb 2019 17:05:52 +0000 Message-Id: <20190227170608.27963-19-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 s390, we don't support large pages, so add a stub returning 0. CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s390@vger.kernel.org Signed-off-by: Steven Price --- arch/s390/include/asm/pgtable.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 063732414dfb..9617f1fb69b4 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -605,6 +605,11 @@ static inline int pgd_present(pgd_t pgd) return (pgd_val(pgd) & _REGION_ENTRY_ORIGIN) != 0UL; } +static inline int pgd_large(pgd_t pgd) +{ + return 0; +} + static inline int pgd_none(pgd_t pgd) { if (pgd_folded(pgd)) @@ -645,6 +650,11 @@ static inline int p4d_present(p4d_t p4d) return (p4d_val(p4d) & _REGION_ENTRY_ORIGIN) != 0UL; } +static inline int p4d_large(p4d_t p4d) +{ + return 0; +} + static inline int p4d_none(p4d_t p4d) { if (p4d_folded(p4d)) -- 2.20.1