Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp362550rdb; Mon, 29 Jan 2024 04:50:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCsGVlumarSSpMbmZz2RdNfmGw8KRqZj1QEGLNolS8qaP8plCzz5Vtrk8a4Y2IX2PL5YaH X-Received: by 2002:a05:651c:1187:b0:2cc:1d8b:5466 with SMTP id w7-20020a05651c118700b002cc1d8b5466mr3415964ljo.10.1706532646184; Mon, 29 Jan 2024 04:50:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706532646; cv=pass; d=google.com; s=arc-20160816; b=YlBAKpBsTUyO6Aj3xR2mJYa1959+2TSkNn7syvFsT9Tuv3DeLCLGAtPIuWiCl9QaP1 E4hnPXP0qMZN3dXagaUfZoVVhQwBlNekrp5+QRG7C2B+eWpk5z5zGj7yu2Z/199Spb+Y LF/ceQ5W/Fc10+CBJnhajd1w6dbn9xCTaMZILXJATvn1K4GI88kyDcl2a0x+pjC9M46/ gEbA7Yrcg6HiKEzniDjwfhCpGFXYLUbScVYR8mIWAFJ8Dm42vJwevvJhNTf2Ho5L2ZaB gUm1CrMQaxyY7NNAK4ohM6XoXJG/ZtAcjPI/YN89wLp7Vi7y8om4w+A8fNTgQ/UdG0nz JclQ== 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=dZBuztrATUgWrwPaWrq4xl5RtiXYg83ssHnQD4Nso+0=; fh=lZsZCQsH4ia1jFJuQK1Gi3cXLvdnrj+ub8bSs7lwlcw=; b=n+duaI8vqgQJcwKjgfP1CeD79Uf9UJ1WNLgUEyFSx6Qu7bMgEcp31EISPFe6VXvu2Z sdUI+7jtJIkLI6LjUzEA3/Y98F14gCUjm04iwh0PPY1oB7PDPHd6UUQDWGAo9VZaDt53 Kfx06pDVFYJ4ttM5NOMduBTcZ6bdZTIZyd7NDuK3pGUvdUGCahj9YJ3LMKESGrUWQK0N I0mB7PHhlSzBcG12HeoMmHf3N5sz8NinszHKMX0wX9ooDl3vowyydSoaN/ciQhRhMBWd MpJP7GY+c7tXmV6qG9nO7gEg5Okik6Qe9n3yiZ49gnkpuwuz/dm/C74Ap7DtgD06iPdH k+kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="iGL/bjIG"; 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-42716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42716-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 i29-20020a50d75d000000b0055f1d481e4fsi267740edj.28.2024.01.29.04.50.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 04:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42716-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="iGL/bjIG"; 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-42716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42716-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 D7A481F22B96 for ; Mon, 29 Jan 2024 12:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4577664AF; Mon, 29 Jan 2024 12:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="iGL/bjIG" 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 7DDD3633FF for ; Mon, 29 Jan 2024 12:47:16 +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=1706532438; cv=none; b=uv2LH1u+l2qC3ciMwNqYw0AqqQ20xNTFjko64T3Jt2WI2rjaL5Vzmqj0Jb2JV+qQFN492njnYqnfbthaK5eKnwI9qvqUChqDyfGUhJEBtam/2GgW54qhk8NRya6Tn+UAlntkC0h2j9+WIapHQz+F1WgBXjkjBnDLfqeDUjf+WsQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706532438; c=relaxed/simple; bh=SRdmEsHVUm76nbPdHvaKN6K9iGsE/o5rw+NBn1BcWW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZHUznAjv8K3B5A3zC7PeVQvP9a6wusH/dh6N9jE1O5V4o0Pm1AgpO1Lxtv0UO2Z/G+vQHyydlfSYbxBHLAvS5xzq2ZkgbTqihPGsLXnECgQNAPLadDdX66ZtKu6puJE2QFMqUB/zpW5mQ2xZvenlAe4sXhGXJjZDsFujpQ3B0dg= 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=iGL/bjIG; 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=1706532435; 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=dZBuztrATUgWrwPaWrq4xl5RtiXYg83ssHnQD4Nso+0=; b=iGL/bjIGoBE7bi+kkA6wSNBkJXAGXlKDyhEncvnnnNOe+Oy8xPIJzfPFhqLtvWYZYI9P7a gW8Mo84c1faWIQY42KoF8PRKlo1Td3Qbx3seK949nlaPxnXU3i2L4xo8P9N6jcnPUoaFfz COcOfZlogR67m4TT2gqsR2hd7bcm6AU= 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-662-iEa3Fx0fMcCsFoiq-is6nw-1; Mon, 29 Jan 2024 07:47:10 -0500 X-MC-Unique: iEa3Fx0fMcCsFoiq-is6nw-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 D2C1F185A783; Mon, 29 Jan 2024 12:47:08 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.194.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B5E5107BD; Mon, 29 Jan 2024 12:47:02 +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 02/15] arm/pgtable: define PFN_PTE_SHIFT Date: Mon, 29 Jan 2024 13:46:36 +0100 Message-ID: <20240129124649.189745-3-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/arm/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h index d657b84b6bf7..be91e376df79 100644 --- a/arch/arm/include/asm/pgtable.h +++ b/arch/arm/include/asm/pgtable.h @@ -209,6 +209,8 @@ static inline void __sync_icache_dcache(pte_t pteval) extern void __sync_icache_dcache(pte_t pteval); #endif +#define PFN_PTE_SHIFT PAGE_SHIFT + void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pteval, unsigned int nr); #define set_ptes set_ptes -- 2.43.0