Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp363056rdb; Mon, 29 Jan 2024 04:51:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyOoIWrzMjGKKxHp1CX2fS+c+EVs6bHdtb6nZjHbTs39wa3yTEC0kCkfpCqF6YPQKSOCjU X-Received: by 2002:a05:6a20:ce4a:b0:19c:adcd:66fd with SMTP id id10-20020a056a20ce4a00b0019cadcd66fdmr1318805pzb.9.1706532701565; Mon, 29 Jan 2024 04:51:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706532701; cv=pass; d=google.com; s=arc-20160816; b=Z2zCliCyNgsb/JHNaWrsKwUkbB0bnUWmCkqE87Vdgk61/V/m8dmqBEN1vLpBrCMz/x eRa5IL0/706AqmGCDLE/G7XWpMoUi7on2WTjjPkW5S3fhGV6k3yb9bdviyOVhPP4q9Ni gjizua8WGPXpGFBml3pomJZSFpfhf9ZJO0E/pNBCfjWJHlUMAM1hALpgTPvQlJjFZpGj D/iwNqDAYBQxbOYQZAnbvnnZVi2WTqE09NdtpuYRzuGHx/IvcnY0I77CmYbrsdpl2uYV oTG0Z6ZpdkJbF4Z1SHn0CLG2EOfWtAa3Goz0RFYO8zr/Al2q9ih79T6J4z+fw2N4Wyur oUEw== 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=1kG4t4M9Qk6cle/o9WwWAIalbkRSmv8fU7P3A1XWjZk=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=UPhfCxUX1VEId9R3CHOyPJ2gypyTwdHv7KWh9WiDx45XzP27UT3XGNq6tCoi7t0X3W qa/0i4JaMjLcC22rdnc0tOPibDRckgXnzsIj1VQLV/0WpweANW60t6F9gQBhmOggDxXI KLkdbW7vZe0TWR/jZasJdPUNgxArI/ZvKvpL+xO6zsTi27yLpeIPs9a84/D70PhGYaVe NCKPIBRxEkXIp5/wzqJJVcc3IBwO/SHQzp3Yx26megQ6R2j/P0HDclfhW++CGANBqZUl VAgyTbGc8/yFRPjHJsY/u/ysLICDq//1R8T1KpfNKYFgAIVii9sokgVd2A4zIn9Ev6Vq Qb/A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gCt3GAF6; 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-42717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q5-20020a170902bd8500b001d8a91e3b87si4697030pls.182.2024.01.29.04.51.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 04:51:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gCt3GAF6; 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-42717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42717-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E0E48B2307D for ; Mon, 29 Jan 2024 12:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0E22664D0; Mon, 29 Jan 2024 12:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gCt3GAF6" 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 6A88866B21 for ; Mon, 29 Jan 2024 12:47:21 +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=1706532442; cv=none; b=FFOabWMmziLTw/gRC8+c7p8WpAsRvpPESH/JaC3Dd3BJLS1LcHfh+ul//xlW71wYG1C/OX83L6UsnM5kOOOl+zeCUysMtbj81UVG0TZTl9DVZLu5wOawqbe5qVyE8A9LjyZddME09GwZIJJbqMx8gGuy7sspisAHDVK9rj5Fdjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706532442; c=relaxed/simple; bh=6COO11Mp7lYQvHXO3tVMQ0CFOwDREGlorbZAOmcfcQw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RdXDDdBQ2RRGuCOr8J5dEauAwkgTngT3HeBEgfUjVPcGe/dbmHaAF1u4RrT5q/MBosHqzLf9TG7pBGem7AjwXiGzmmmEO+W6pWbr6XdO21x5bEsS9PqHxhn6dtd/MJIz0IO5Jf3wcB9/69EIQBzqZZDwApshoIgX1n3pq9/Ce+0= 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=gCt3GAF6; 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=1706532440; 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=1kG4t4M9Qk6cle/o9WwWAIalbkRSmv8fU7P3A1XWjZk=; b=gCt3GAF6icP6RJfc0SRXT1Xp7vqpeMlcgfywiOmU06jTokKMzQdU5xtlxU3BLInMENP1be n7Kdry8bezALcTnapuR9nGqJiPm+G0GmKXbxvlw8x27hbYbdP94GsuAfI/v8AtKorMzOSh VdSblFMlnX4Gnxl1rZXbLQuInyF6bPo= 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-669-B9qoHUmjOAyZ8jvL8Xcr8w-1; Mon, 29 Jan 2024 07:47:16 -0500 X-MC-Unique: B9qoHUmjOAyZ8jvL8Xcr8w-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 33D0A3CBD51E; Mon, 29 Jan 2024 12:47:15 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.194.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3EC37111E6; Mon, 29 Jan 2024 12:47:09 +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 03/15] nios2/pgtable: define PFN_PTE_SHIFT Date: Mon, 29 Jan 2024 13:46:37 +0100 Message-ID: <20240129124649.189745-4-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/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 5144506dfa69..d052dfcbe8d3 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