Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4465387img; Tue, 26 Mar 2019 09:54:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS5Gt8uj0879ie0W1HHOBhO1kpZvXYm0pFiyOvykcw8H4WEIBJv5H+fEoA2fJ2Z3mdBmrV X-Received: by 2002:a65:60da:: with SMTP id r26mr30253442pgv.294.1553619295508; Tue, 26 Mar 2019 09:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553619295; cv=none; d=google.com; s=arc-20160816; b=hZNBEYlKIPvzvVvnvAmvz3yr2DOr3TDHhUkUPurRjGh4bk5byBG0FWh3wwqCcLZhIH SCmWyk4YrY7maUYTlUYoPHLITWSFIb+7fWHSQGfQ15UJECOz1HxdpNZ7TS49uV1S863J mgbORjRSUOgcYTtbQCe9JqO0A2alqHOKgvqAu5/kJIKNvzr1Xnr1X0l0iL9FEv0mZzDq eV+yp83loC/AhXIgEp26Iz+nKSm7MFH4SbH6H5Bja3rIMtB5Wx0KUu7PQM+v8DLU29/w z6mFsrYMRWalOTfJtoEs1BOFrMxgE+wuopy1pJJ+ehahWR4z7feG1xKQcRto+AKVrYxD OM7Q== 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=EIMxzs3KcJ4jmgX2iikj+tJ0Q4+Nen0h2D0kdVtq1V0=; b=dK7DZYxfwqJpKroxt/5Lx3ipphDM2gYhr5ryhNwIH1Rf1cuFj8Qc6Jr6ks5NJ+GpCC pLZbR5INZuR5B5tON5/A6xjn2c/C2QBHBOXHqyVL6pqzDlNQ9IuYGCwJqG9AS/f4x/m2 AEWxO2iRniW4UGuNvPd/Ld9CbwGWXbS16YsImejc2rgDhSyoLUTQwwSg0BrZEQKUh5+6 U68BH3dPzkke0sZ1e+Ri1CqZgPujsYQRbfTEQIpYa22t/PHgmF/37Q+b3UWHhQ8lD99z gujO0cGumP5fzYomQ2k0kpUwfd4LbJ7fDEl5WXeYPnBfvNzqUnvr76Ek5D4bt1pAnOWJ kuWA== 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 p17si1394766pgl.181.2019.03.26.09.54.40; Tue, 26 Mar 2019 09:54:55 -0700 (PDT) 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 S1732157AbfCZQ1A (ORCPT + 99 others); Tue, 26 Mar 2019 12:27:00 -0400 Received: from foss.arm.com ([217.140.101.70]:39704 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbfCZQ07 (ORCPT ); Tue, 26 Mar 2019 12:26:59 -0400 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 E59BE1684; Tue, 26 Mar 2019 09:26:58 -0700 (PDT) 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 3F3073F614; Tue, 26 Mar 2019 09:26:55 -0700 (PDT) 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 v6 06/19] s390: mm: Add p?d_large() definitions Date: Tue, 26 Mar 2019 16:26:11 +0000 Message-Id: <20190326162624.20736-7-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190326162624.20736-1-steven.price@arm.com> References: <20190326162624.20736-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, pud_large() and pmd_large() are already implemented as static inline functions. Add a #define so we don't pick up the generic version introduced in a later patch. CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s390@vger.kernel.org Signed-off-by: Steven Price --- arch/s390/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 76dc344edb8c..3ad4c69e1f2d 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -679,6 +679,7 @@ static inline int pud_none(pud_t pud) return pud_val(pud) == _REGION3_ENTRY_EMPTY; } +#define pud_large pud_large static inline int pud_large(pud_t pud) { if ((pud_val(pud) & _REGION_ENTRY_TYPE_MASK) != _REGION_ENTRY_TYPE_R3) @@ -696,6 +697,7 @@ static inline unsigned long pud_pfn(pud_t pud) return (pud_val(pud) & origin_mask) >> PAGE_SHIFT; } +#define pmd_large pmd_large static inline int pmd_large(pmd_t pmd) { return (pmd_val(pmd) & _SEGMENT_ENTRY_LARGE) != 0; -- 2.20.1