Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp363084rdb; Mon, 29 Jan 2024 04:51:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnXRZaSIIr3pYJ6w7g1Hrq07Mx+kmzQaUTUs7cteTSZpQ1T9Xy3nWNC7KcvzWt4sWQaDgk X-Received: by 2002:a05:6a21:1518:b0:19c:a6ab:4d4a with SMTP id nq24-20020a056a21151800b0019ca6ab4d4amr1492430pzb.49.1706532706487; Mon, 29 Jan 2024 04:51:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706532706; cv=pass; d=google.com; s=arc-20160816; b=MJ4FkolwJzYiTr26K0ILrLxs482MDNPVgtDskdWOeNeY+EBaawzgvziD+0JmWFHi8b d0DUUQRLL6gOqB/qHWOeXyZS4UnFsveZYdgqrmd+zXHP+wHMyjxEGtxV1S+0ksu0Em0B 6Lqnse4Uy6rMHLZ1RmxPurgrVuD02NZAWTJ70gwBA0g7BYnYJQk/QrIbFjnmqCmgBv1b 6+BpCsjH+KI7hns9Pq8M/wcbegKLa5rON7E0L/MHS5+HUeX+0c5bxm7tonDxBF56W98s oTuFUNeO8YjrkMAnokfGdpAiCctAgtKVw/++SbgxTQB+XCAqIt3NZeLoxrJz+UUAnSDj n24A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Q4tnrwU9nMLq/XRgt5SnLvg5SSqAxaQfTq+KC4Tr5Rw=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=vuAPzGm+tTzsPQU5fof3Ad2GjEoR4FiUoxYQTXT1gtR//Yc4ipK3qq2+dqwXpU1bhy MLXeekQJwGesc1qIbNhnadDJ9EqFieA9etASpgVq/UL/KG3s8iUEboQ+9JxiWLE7wm3J kx/VProua0QeDln/Rn9hHbW24B/1fR9L70DXkY5WcDmwNugrhFPTy74chfFQvzmf/Wv9 REn6gMz/e5vakd6w0SDvAOuTOHouUFmFZ5jw45ALCVU2Q/BndizAmqR0kauOS7xMkRcu ET4xcxBvqVC++cWG5/SPdWcbeuJNOn+SEw9JiUtJMcROdrnLOK7WMD5jOTgs7JfVzH0T hAfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TmaNglse; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 3-20020a17090a098300b0028e114463b1si5552733pjo.60.2024.01.29.04.51.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 04:51:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TmaNglse; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2A67E28631C for ; Mon, 29 Jan 2024 12:51:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 760896772C; Mon, 29 Jan 2024 12:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="TmaNglse" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4ADF963500 for ; Mon, 29 Jan 2024 12:47:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706532460; cv=none; b=cqqbzFdeBTPq2jUWlpNE6rtWfjmU/+dskxz0gTl4xa+kujrxmaPK6eiqipfc6lIGf/p4N1FresxpiIdu9rYektsomvZ09YuH+jhYUm5/3Dz6qczxJnS+Higxh46F7gjF03NjQg1mzz6tHwW123MG2Ubj4KALMIK2d2vJ2dvf8q0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706532460; c=relaxed/simple; bh=IaFQMczO4hkkUgLS4AhA2SVxrlGS1xTOsrJGXYuJFIE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gtQSX4yfpkvxxfCsEIx2nogseQBTLcXxpd77MhjFjgi+6ZmS1+rwRwS4640OB/rCthHkhJUtw/4qwpINWxuP+EEWtIrGYUTbtzGV3JmdPQwSCEjeaZLC/D3/4DWRX2GWJODxCwvVS5D7y8SSO994JbHOpx4+kQvLAcoeI1qIjRA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=TmaNglse; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706532457; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q4tnrwU9nMLq/XRgt5SnLvg5SSqAxaQfTq+KC4Tr5Rw=; b=TmaNglseSx373K6jvLJcNeByjoiACIczb2yqndCRGWPBeqbvHdhQyqvr/jmDi5NiIbsSpb xn0Xwe7lw7eHqu98RDm2U72Oqh6YsXSgxTjSWGLt9OG95WzrtXJzaOjJs8FjQ3WmRimHJH iQHnWErluT0NcqSaze9zLQBBNGn0qjU= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-626-0qzEMwiFPS-I-NbcZuBhSg-1; Mon, 29 Jan 2024 07:47:34 -0500 X-MC-Unique: 0qzEMwiFPS-I-NbcZuBhSg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 208913814E8C; Mon, 29 Jan 2024 12:47:33 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.194.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C9928B; Mon, 29 Jan 2024 12:47:26 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Matthew Wilcox , Ryan Roberts , Russell King , Catalin Marinas , Will Deacon , Dinh Nguyen , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , "David S. Miller" , linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH v3 06/15] s390/pgtable: define PFN_PTE_SHIFT Date: Mon, 29 Jan 2024 13:46:40 +0100 Message-ID: <20240129124649.189745-7-david@redhat.com> In-Reply-To: <20240129124649.189745-1-david@redhat.com> References: <20240129124649.189745-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand --- 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 1299b56e43f6..4b91e65c85d9 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1316,6 +1316,8 @@ pgprot_t pgprot_writecombine(pgprot_t prot); #define pgprot_writethrough pgprot_writethrough pgprot_t pgprot_writethrough(pgprot_t prot); +#define PFN_PTE_SHIFT PAGE_SHIFT + /* * Set multiple PTEs to consecutive pages with a single call. All PTEs * are within the same folio, PMD and VMA. -- 2.43.0