Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp55142rdb; Mon, 22 Jan 2024 11:43:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXshryc6ldRiE756Nhrc689CWz9K1cBa7phhMHxQ6HWXhxr9Ap8KGSP+EZpCcPzWBhNI2E X-Received: by 2002:a05:6402:3ca:b0:55c:2d3b:14c with SMTP id t10-20020a05640203ca00b0055c2d3b014cmr224132edw.65.1705952625965; Mon, 22 Jan 2024 11:43:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705952625; cv=pass; d=google.com; s=arc-20160816; b=EkgafzZj2A9oWirNfjx+hvwCu7xhwnlECQxoYbkl/qMYXD1z9xXPuYZj1uE5cqmF1S a2/rEeQp9OnlQQ7Y2qsMZP2vK1NqImIqzTWKObyQN2wNs7kKxnmC9vjf8seG0ne2RC8c RJHVHOsVABswM0jHOjuemDjUjrV5EThJadG38HYbn8riQgV6AtZEznn2FHdgKouc7Gca wAbXwlcuUwPdwPX/Y0FmETyBtm0Ck78RY6O17kJu19KwH9EO0eqkmIXTjnoC0ajfpbg5 2v4IIjcSMLd8fXHAQlMnhBeMAJgJRlzcEpfh7uaLW6P+xinKMvG1hTC3/jeGAKk12EQF 6Skw== 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=OA1ZFxm0ba3AcXcmS+8/ecOKI3aFHalZlUfREzi3hZE=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=V1JikW1VtcReBhpKTcIN79lsAdUzeithCd35AFKCzFLnFQmsbpUMdTTWZjGF42t0Sa Jcdunltf/juxR0g1RVROgs/u65GJoF8aKbIqb3yvVpw2YKAj3AWXTexV3M1bF3sUsLGv qQHiZcARTXfoLBK3KK2qQE237E2ZqDBoHJjhmFJ1XEKFEEFASROC00u1yTBmuEXMkuZo vI3ZCi4jKz2T7CxjqaKUtXypBifWCNgypdR/yq5YEGv5Ic4/9Z/lCOWgdke+Sfegai8r b63tSe+6DzPn02ApIHZ/DlCHfAkOUPckwLBbneP/B0uT2q00+yIpkteZkenARmtowrFq cEGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Tjm747rz; 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-34070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34070-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 i14-20020a0564020f0e00b00558a705afd7si1907786eda.562.2024.01.22.11.43.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:43:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34070-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=Tjm747rz; 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-34070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34070-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 9BCA81F27DF3 for ; Mon, 22 Jan 2024 19:43:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8345641237; Mon, 22 Jan 2024 19:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Tjm747rz" 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 62CD04122A for ; Mon, 22 Jan 2024 19:42:28 +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=1705952549; cv=none; b=vA6GJWNOilyjVdg3ehP97OsdDN2nIOpctYyhtybfHeXSS/RUqmxNBvE7Q42eFNYoKG6zEEwWcXApBp/iAnBQNpI9bcfZYFdx479J0o3A+9uMyE8W/T2JvE2ob+70oMpcLMLdnTo4c3IWCb4/2SBA6dNlBX9tsLr6RYmXncHdI7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705952549; c=relaxed/simple; bh=nb9YIiLnxTn2ollbu2vk2d62ktEqUfvdE4IqYAeztZM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uab4cPRxgd5P8qw3nf0szRSmkWG/Qeaqw2wjHtH86k9PfW2fursWXivLbiwKJzR4tOBcJJIUWto0sNNMgkgseIhy88Cpxt8SypDQiBioyEKq9KTkRaP7xI6rHGJn28bBoR6rZ9zzbXacl51HUAcpOB8+k35yqe0WgDuTR4l+78M= 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=Tjm747rz; 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=1705952547; 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=OA1ZFxm0ba3AcXcmS+8/ecOKI3aFHalZlUfREzi3hZE=; b=Tjm747rzCbeJ9Nvjzpncp3ayvHRQEAB7MowtNvha+nBWZ166WxLfnlopbUNKwOf/NGghkP WPfr76RouZcxrzUuAZUtVMwqqhOpDTtMBQXejOvFdb3a9cgObVIf2q/xUoRPn04emo3cZN Vqtlw4TmtKLbsMEh0xwoPh2sDu+AeSU= 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-66-LD2D6IcIPfyJ8rm49qezLQ-1; Mon, 22 Jan 2024 14:42:23 -0500 X-MC-Unique: LD2D6IcIPfyJ8rm49qezLQ-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 72494185A781; Mon, 22 Jan 2024 19:42:20 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.195.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id B2CA03C2E; Mon, 22 Jan 2024 19:42:15 +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 02/11] nios2/pgtable: define PFN_PTE_SHIFT Date: Mon, 22 Jan 2024 20:41:51 +0100 Message-ID: <20240122194200.381241-3-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/nios2/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h index 5144506dfa693..d052dfcbe8d3a 100644 --- a/arch/nios2/include/asm/pgtable.h +++ b/arch/nios2/include/asm/pgtable.h @@ -178,6 +178,8 @@ static inline void set_pte(pte_t *ptep, pte_t pteval) *ptep = pteval; } +#define PFN_PTE_SHIFT 0 + static inline void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte, unsigned int nr) { -- 2.43.0