Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp206872yba; Wed, 3 Apr 2019 07:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU2nzAxf1ml/d+JzvDaWbQNcE7CU0jawSugg3yvnHVSthRUesctUtUPzMenfEPkoAd4Uo+ X-Received: by 2002:a17:902:b10c:: with SMTP id q12mr140540plr.254.1554301140395; Wed, 03 Apr 2019 07:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554301140; cv=none; d=google.com; s=arc-20160816; b=PqgAGSfHDuTHrSA3G7ASujr9ACNXe/qolzjdiy+xgp9DFoqrmCcViSgKQEeWUpGMhz iIYDQXCnNHcPQsguOjVuGmisJGgcidJG2FSqnNdKU89jWY2+u4cN56oZy7F74bceo9py S9iPe605eZvo9PeFCDvxniEuVBuALbz8IZg0W2rvLmcyOw8CLZYll9GQLKlXSpTgyB0M Lld84Yz16v+yDFp68VHOBVm0rNmjZ3E82rlLL4PicK/4QCeXVeCIP4nanYBbl8527zei Q3BoNnAqd33bG4CeWUjFvOwWqcIqBBXmdE/p2N59LPXnUf8G53c4ql5wDjsBzDQJsdkL gFPA== 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=FD9Il3Pos7tTi9LXEDpAPXbzi6OHHK2oVHdL6MA0bp9RkRLl0HRV0yWzoGq6iN6wVM jT8HV+R6HFkC4sttViqPA2IMEbtpGa7Teo/56V9VUJH4a1tjtELDdwLH/gPYYF9mU0De 5tV5YXcbj/8B87uW2dSAOkIlSfqvTWPGLCcXtR9icrUgB5+VvlNgZG6NcTX+gQpVz/Em 9Yor0VA+YDX4d8fFGiq1aTQRdEQSTjmES7qeEQQPCClODzmlAmQ+9EQEvFjBmDQzXIc1 TbaQhGz2Z57RC0hV7UVCZyTTlCn4vigd745n1INLQcez8Ap+0/W3rOIxBbQQlpIXv8s8 gjtA== 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 b15si13700562pge.349.2019.04.03.07.18.45; Wed, 03 Apr 2019 07:19:00 -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 S1727006AbfDCORl (ORCPT + 99 others); Wed, 3 Apr 2019 10:17:41 -0400 Received: from foss.arm.com ([217.140.101.70]:41606 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDCORk (ORCPT ); Wed, 3 Apr 2019 10:17:40 -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 4F4521682; Wed, 3 Apr 2019 07:17:40 -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 75C643F68F; Wed, 3 Apr 2019 07:17:36 -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" , Andrew Morton , Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org Subject: [PATCH v8 07/20] s390: mm: Add p?d_large() definitions Date: Wed, 3 Apr 2019 15:16:14 +0100 Message-Id: <20190403141627.11664-8-steven.price@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190403141627.11664-1-steven.price@arm.com> References: <20190403141627.11664-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