Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1338472pxv; Fri, 23 Jul 2021 06:05:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO2ZVfgEIWyj0B8aMRbfXAKnl8vY6Kb/aRYj0SbZzpOvKZO7Xlj6LiD3MY1tvMIt09MG6x X-Received: by 2002:a17:906:31cb:: with SMTP id f11mr4647776ejf.379.1627045559432; Fri, 23 Jul 2021 06:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627045559; cv=none; d=google.com; s=arc-20160816; b=zDoQdamCNLK9w3yUGKK/eVmJXnFc8cojTG0dgvqh9tge9WQ/QkC+UTABmcZsZu10ei NuA7Am9nucCLj0NiGO7nVY/fL/D1X8LkuVpjM5uF2W+TId/qRioCMpOYgUjw8VmvJxia yipRqubzXwppRCnAUx8uu/VBEDUfTQnnQXGJLpjX09YNrZSjtMtskYtlBqWHEnXA86Kk Y6TJQzfMrqXpSZlU0gSHyARWgGJVR6cHTwaPQIcVmXIkGzeEzDvWGRDw3wrBwWmKUzk+ QW4uooYo/kYFocddYtXDk6tAu+axpTIXwl+22rA9d9T6L3QasUWnABgZ62DPbEhh5A5c dBQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=eciw5C4ODyMJfOEcuhMRoO7Rq7b4Pp8iloGbCSLRIfw=; b=QXy0le6RMf+P57GLn9ufSHUWPCkOk6G5yPaGyugCHRT8vAapoZi9yS4918dWp+H29X H93V+p1ccwxMk1gTuB2xzMLp1c9Qy+dRC4fCqCfM8Q3MsLaRFlemN8TGlg0ywfqI/MvP 1Pd2sRK2QxJD/MDjF1XWnnc4CJoZPbClLv+OcrCEQJoO0LCMKcUqYVBH1MF3IqZUtiFj aLm4CLLWQ7fXUA0nCZ/pkYWdYuiT0RNGwRLFADKcdvB2ICl55evJyQYh12rVXR6uhTxl XUiI/VffSmCntM8Z3QZapoFKsp2sT2+99O7fgXXEch4RmeYLk4wV6gp2HZGXctgAsVY6 THGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si9322669edy.190.2021.07.23.06.05.34; Fri, 23 Jul 2021 06:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234988AbhGWMVB (ORCPT + 99 others); Fri, 23 Jul 2021 08:21:01 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45437 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234853AbhGWMVB (ORCPT ); Fri, 23 Jul 2021 08:21:01 -0400 Received: (Authenticated sender: alex@ghiti.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1A8A660003; Fri, 23 Jul 2021 13:01:30 +0000 (UTC) From: Alexandre Ghiti To: Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexandre Ghiti Subject: [PATCH 0/5] Small cleanup for mm/init.c and address conversion macros Date: Fri, 23 Jul 2021 15:01:23 +0200 Message-Id: <20210723130128.47664-1-alex@ghiti.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch allows to have only one definition of the address conversion macros for all kernel types. The following patches bring small cleanups to mm/init.c and the last patch makes the size of the DTB early mapping consistent between 32-bit and 64-bit kernels. Alexandre Ghiti (5) riscv: Introduce va_kernel_pa_offset for 32-bit kernel riscv: Get rid of map_size parameter to create_kernel_page_table riscv: Use __maybe_unused instead of #ifdefs around variable declarations riscv: Simplify BUILTIN_DTB device tree mapping handling riscv: Move early fdt mapping creation in its own function arch/riscv/include/asm/page.h | 15 +---- arch/riscv/mm/init.c | 121 +++++++++++++++------------------- 2 files changed, 54 insertions(+), 82 deletions(-) -- 2.30.2