Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp55391rdb; Mon, 22 Jan 2024 11:44:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IEih2+4Zek68W4/3K0xaEIQIdSEpztbQDqluFaB8iI1IutIqyCc0d5SroNayuJY9UG2uYC1 X-Received: by 2002:a17:907:7344:b0:a2d:4383:78c8 with SMTP id dq4-20020a170907734400b00a2d438378c8mr2497690ejc.47.1705952664221; Mon, 22 Jan 2024 11:44:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705952664; cv=pass; d=google.com; s=arc-20160816; b=wQhlErF0kdRrBm065TH8/CG0o15BbtCMntsDiTLHa3w1qqKJCV2eUqoNiBY85p92tm UN5EYq2kzTYQMGNm1K6LuMqFU5thZRx8T+LAEiX++q2ov1SEndQfVge+5l30RD38ACbO Lr1kAK7o9EmDZSPVdqrFS7OWrF5ywhkEHRWJOivfaX5OEh/mznpLSrsuq53JWTHhXj5R 62c0KgXuVKbDnKl67+LJHuxxytfgFMhDNo6mmC0WVNJV8/64L3nTb+7LfXICQallvYMa TdTZIH8/5wOeeBB9DsW9tJmLIfSU2rrcIQ0Km8jV9q2OhouVMzEQNCj36B7I+frnwl08 Ol2w== 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=vjWUYiHAoGZrNfW9Y2JrmbsG1L8Q45EKDO2/2fqZPoM=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=zxZm8/FkmznKBNV05y/atJTq+CGh8/+J7dD2NaheB8oW6OBXwP9DnEx/2zKFBtMOGz ySDyfweF2aC05ns6aMeWXFc89zV3lBYk2/TCwgyQ2NXVT8CZr4D4h7skqDCsoONpNntp 32HLk+ggobaG8YYWQhrqUv+b3T1C0zcV2cn7UXxXrmJyneQ5MypSnZlu4LbmvZaOr17l 1mSNYDSX0nbQZ5man4JX+nzjj1aajKHfhwRNSoifM18oGIvQ0RyksciF6oL0s6xly34e wV2kxgBS7TwVFLmzMBt+ETF6allrV2fB9LAHJnsrmaQhUobpeT9/5v3XllMUpCG5N5tx IV0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h6Pdkpg1; 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-34072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34072-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g27-20020a170906395b00b00a2c0f6b1eeesi11113229eje.449.2024.01.22.11.44.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:44:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h6Pdkpg1; 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-34072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34072-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 0186F1F29B65 for ; Mon, 22 Jan 2024 19:44:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1EF446429; Mon, 22 Jan 2024 19:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="h6Pdkpg1" 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 9A54F41768 for ; Mon, 22 Jan 2024 19:42:41 +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=1705952562; cv=none; b=QgiE9V30UBtp7voiysdvyxTE+7oVZP/c4vxKOB66bZdkDYIyVORVLeempgIH7vMXUg0TCGc0zFEHozaoKwpToUWexpxIgD+Eg1OzCJCKxBYaHko3eJnMp985G/Uu3BdYsPlXHdSZQdv9q6ZDiIJcxzYubRTn9vKUKpk5sMbCGMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705952562; c=relaxed/simple; bh=KgCf92oLVzjPW7/U1Ng3TFsAs2fL9gNjxZKNUHXB3zk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=it9l5A+d5k3EJsFQUoLbyNIyaVq2zo+YIxvAZb1BPqRnOK7ZQt40ARcOSqJFsaBTG5u7fGfsUdmJi9RImLUkB+5wPje8DtDUwfujmZDc6TQrhIxHYAOBbtkkR0TJp7dwONyJL6W1fmBLNifkFqAv4O2itOGeVyG99l1xilFd98g= 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=h6Pdkpg1; 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=1705952560; 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=vjWUYiHAoGZrNfW9Y2JrmbsG1L8Q45EKDO2/2fqZPoM=; b=h6Pdkpg1grt0gugfUMnOTvblproFJaC7k8/6qVREEYlfcW9cJS95ORlXrdmz5QQEwsqhnr ihoPOzN7M6UW4/13UBey99fXeW2ojASJLCXvLeZpGrE9bczOFVs9ikfvlH4kDLXERuYsRE WSjbTsYRb3D4Xnlm+wtGF6SOqwsCluk= 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-424-qOBFwd40M36O2u6x9q2y0A-1; Mon, 22 Jan 2024 14:42:38 -0500 X-MC-Unique: qOBFwd40M36O2u6x9q2y0A-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (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 B76F3106D1A8; Mon, 22 Jan 2024 19:42:36 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.195.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5C393C2E; Mon, 22 Jan 2024 19:42:31 +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 v1 05/11] s390/pgtable: define PFN_PTE_SHIFT Date: Mon, 22 Jan 2024 20:41:54 +0100 Message-ID: <20240122194200.381241-6-david@redhat.com> In-Reply-To: <20240122194200.381241-1-david@redhat.com> References: <20240122194200.381241-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.1 We want to make use of pte_next_pfn() outside of set_ptes(). Let's simpliy 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