Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A135CC4338F for ; Fri, 23 Jul 2021 13:01:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7BD0760F02 for ; Fri, 23 Jul 2021 13:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235040AbhGWMVC (ORCPT ); Fri, 23 Jul 2021 08:21:02 -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