Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1338333pxv; Fri, 23 Jul 2021 06:05:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7ROragZHmn5B/Yy45Oi/YZ6UqfAkk+Nfovuk2cqrpuKDc9ztMHfZ5zcchT+slOhkejFL2 X-Received: by 2002:a05:6602:229a:: with SMTP id d26mr3966984iod.110.1627045550363; Fri, 23 Jul 2021 06:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627045550; cv=none; d=google.com; s=arc-20160816; b=HKiNLXzqlODNVtyXD5oUzxUxXzdSDW28MgE1z30QgNrjJwtDdagbAN0VUq/lB3SP9s QKLh/a/6xtBNnrjaBon6L1vClU1KU/iDS9VR3rUw/nqOHh95b8kQ82exKpnlDziM2pCU WWbq+qv0bOzgpvNyfPY6y+AwFDb+/wnVOG7k6yv7aK9adf9ZoGTfFxLyritiUe9DMJOt LQC4JcvXn2u46EEWLRgftg6D5EMh15HCsCob72CBhXJ+/qpkT4w2KzPaiUgT2SCbUB1T RXUc6XH4PKQ122YsrUl1PBwfcyRQ2ha4CgRoaJyD44cQYKeZok+l3da64Diu14EPsM4k LNNQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wjyii4Zx/F5iKPzA8cFoSXVbJ+KeZa+VQpNLTWGDJ+s=; b=NP+NRNsKo5qT6dWnX1Z5RxmVLmAMCwfBDoENZZiEz7BWkkkCZFWquJFq1yQYcNxrVf GNGRTjE8zxt/5pN/SSRy40XjEBpwlG3c99GwByybpxA6e8iJ0eEcl8WwaZvoX2D58nr9 uIINjmuzZbw/4o7tTghZB0wvSP44B+Z/bzdBTlWEQff3yTgb3K13ZHXvh+xHwEOfYLDi xcqIUpdRsyYKzTfA0RuQpGlILkVhtDxP0SSvw3dKWJayvJsXfkz8ziMuTsg1lXUsK01F wbz3R1zt14rFBqniTN1MoHv2C76UVvD5e8baN0TEMa128dlRbFtxvzGy5NOBmez6/xvS jzVw== 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 z9si20943502jat.41.2021.07.23.06.05.37; Fri, 23 Jul 2021 06:05:50 -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 S234996AbhGWMYM (ORCPT + 99 others); Fri, 23 Jul 2021 08:24:12 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:42805 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235280AbhGWMYL (ORCPT ); Fri, 23 Jul 2021 08:24:11 -0400 Received: (Authenticated sender: alex@ghiti.fr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id E2A2E40015; Fri, 23 Jul 2021 13:04:42 +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 3/5] riscv: Use __maybe_unused instead of #ifdefs around variable declarations Date: Fri, 23 Jul 2021 15:01:26 +0200 Message-Id: <20210723130128.47664-4-alex@ghiti.fr> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210723130128.47664-1-alex@ghiti.fr> References: <20210723130128.47664-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows to simplify the code and make it more readable. Signed-off-by: Alexandre Ghiti --- arch/riscv/mm/init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index e35df3e1c9a3..6b29c5791555 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -538,9 +538,7 @@ static void __init create_kernel_page_table(pgd_t *pgdir, bool early) asmlinkage void __init setup_vm(uintptr_t dtb_pa) { uintptr_t __maybe_unused pa; -#ifndef __PAGETABLE_PMD_FOLDED - pmd_t fix_bmap_spmd, fix_bmap_epmd; -#endif + pmd_t __maybe_unused fix_bmap_spmd, fix_bmap_epmd; kernel_map.virt_addr = KERNEL_LINK_ADDR; -- 2.30.2