Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp175938rdb; Thu, 25 Jan 2024 11:34:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH8TXcZjAgy4JDs0OSZ3EI8s8jOLsMbrfWju+XIAUBWkibJwn36P+3j5CkA72NSIa97vYR X-Received: by 2002:a17:906:7ca:b0:a2d:5255:fc23 with SMTP id m10-20020a17090607ca00b00a2d5255fc23mr51500ejc.115.1706211261507; Thu, 25 Jan 2024 11:34:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706211261; cv=pass; d=google.com; s=arc-20160816; b=lvDRDrOUA4n+u7eb1fx/p6ZGSHhk+zx6sRpZh0cCfcVr2RMb4IIP2PRkEqRk5XNpEF MOfU3kax1I+qdPT86sHaay47Pl4aITaNOCKg4OmDQvoK3jHoLm2ORdAn/lmIYnnzRlOv 7A4NjUHxVwHNogIHmfWzko/g/KVeKFIjnQn5MojyVa1vHEjbz5zUGlyuEH5W7QNU5seu kpIBI0cejLnoLSp9+4c3ExOcoffAAoEBpAq9nsCvx4gVIvbFGUtbiHRSHfO5SCLlOpsc p2g7HMITeaDKjjhXjuG73LfzNVHWJ2/6Mdd1ZuoCBVSon7S9AMPa1GkNbT1dU9yvpBxO pMiA== 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=CEfutWA8TOtN9AdoncLNh4WzK5liBAMWJLeYoeWJ9dzfhHZ3xlMi3lvHn3+YMcdVnB FwNV3t3G+78Tn+3BtJT43PNmXZdtnXlLpysXmHmmLUXCeyn5M2cQqIjTTASsGDPHrohQ +ba7xU6ugKeYGP62ZVhisZFXhgI6DOHhhvFdYvRlxXTFEdKHEwjRwS7HsuATzJolM73u P27sxoBt6XEWctbATvdUVAwn+Lq9cdwFLhQzuMciLrv0AJo6uE6rAAMqU2oR5LJFiMGk c4NxgwubsfNHniP6lCucPugU//u9sUpDlX0KRIOaw/ZehEdfM6LaB5eS790PRqB9+qBQ 4+GQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CW6n8Rjx; 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-39187-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u17-20020a1709064ad100b00a315b1f4168si1158571ejt.1038.2024.01.25.11.34.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 11:34:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39187-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CW6n8Rjx; 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-39187-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39187-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 472221F2536A for ; Thu, 25 Jan 2024 19:34:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C1101386BA; Thu, 25 Jan 2024 19:33:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CW6n8Rjx" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 2EE5B135A7C for ; Thu, 25 Jan 2024 19:33:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211199; cv=none; b=H52n7JM4ZyoTVOfgfq2T/WrX383rqQwKsV5+OX6kFYXKvtRfTbVhGjPlkU+u/qNlhI3Omh0l3RgKSPm8atFToEoa7vTa6clCe+pMcz4Fl6rHdYqUaTGa+dIXosfahshutZD/Wbovbhs0zqSTqBcrffwXLccSqo1mgcFr8WQ/hZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706211199; c=relaxed/simple; bh=beb0W7yX0tkUismMES7zCBKaj0ApRHIrR9uFe/KO3kM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b86rr2LPQ5NgUIIWbMgBHxyR7BXZXGdChUlIBFpW4LCvnxJX1KS+I88UxQWwN9Rgd18fvjHx+gGbHlKH9p57o7T2RUcKziyZXbkFo32WA5EBTJ8ZWN9ug4vf1B2LdakXoN4DOm6fNYjB/2CUwBBLoTkbHxHBb/dLYoD0m0/CkiE= 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=CW6n8Rjx; arc=none smtp.client-ip=170.10.129.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=1706211197; 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; b=CW6n8RjxrURyoj4EoncwQAD8EfO4pscRLUFD7i1bGRa4Mv6qW3r9majRliIktVlYZMcmBV 03pUJkLQSiMFhHbl0nhEw7PsLpMdNlNBS/TgrsL/KcMwdYGB9/7k8/YOge2YQ6HTzeF9F+ txZkcP8gwIRt5pg9ztp0egaMcErVsLQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-213-Hevm4ONKNRujmourt_4mew-1; Thu, 25 Jan 2024 14:33:10 -0500 X-MC-Unique: Hevm4ONKNRujmourt_4mew-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 708AB8350EB; Thu, 25 Jan 2024 19:33:09 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 644EE492BC6; Thu, 25 Jan 2024 19:33:04 +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 v2 06/15] s390/pgtable: define PFN_PTE_SHIFT Date: Thu, 25 Jan 2024 20:32:18 +0100 Message-ID: <20240125193227.444072-7-david@redhat.com> In-Reply-To: <20240125193227.444072-1-david@redhat.com> References: <20240125193227.444072-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.9 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 1299b56e43f6f..4b91e65c85d97 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