From mboxrd@z Thu Jan 1 00:00:00 1970 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=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 BFE7AC433ED for ; Tue, 18 May 2021 12:17:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4CFE261028 for ; Tue, 18 May 2021 12:17:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4CFE261028 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Date:Message-Id:MIME-Version:Subject:Cc:To:From: References:In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CocMp6vopOZalzSehq3ANHJNchS4kHpIutPzIpUqYCw=; b=gE60TD3KiEGYj9NmheE8jePuE Be+reXcBrj1aPfpEH2oSnOsmIHSh3CUaX7taY8VYqG0CIynjRIsXnrvS1vfldiERFsP3poTp4JYRw 54VSH9QUlKI/h6onKMNOFkYoWCASAL18wUKSLEayr58rXt4SbIJAM2p7dXhDaO4tuKmQwbvi4auED gEvAPDvmflcQ9ZM1yVo7y9zgwFCDOtcZLBWSV/bJNUHwXSf/coAw0eWhpoPOCvdWHJ4i4bQHUdvkV xnOtZNtd8mdWICqpmEUWYrnX8yctYpg7aTI/axLjp62KZdyyY8yZywvQZIyX9/2FMV0vP3s803QcT eVgfQMWcw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liydc-000j0f-0d; Tue, 18 May 2021 12:15:52 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liydZ-000j0C-PT for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 12:15:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description; bh=EVyVWL3Bw3em1SB7guIWDG8Dh2TRp8K8vFAoLmQuXg0=; b=wsJVxXym5GLWxLZniaf8JDA4Qq +3HM3bSXU/B9DPACmTNm/JIqjEBc1aFNiWJRnEJGldjp4y7GTUfSR+kqCU3gfoJejbHq84rzxeXgU 6CyjW/r+MTElKKHrKhcr5w77Q1WHSfadWomHT7Qa/oIBu2F5KVN5Rqhav9TSnDIa/mvq+TeiCbkFp aZzuGwmJSh0SfMtKI1GxcMjv4pwK7bIH0sxaFr5yCToou+4HmUKSpqBSa1OsAEYUv5bFblZcAKJMs pUYqXmDnaQM/EfW7LzjG9/jfqQZkUndB8p3yPE1XCa/ZiLcD0W7mUGkm7oIWszP6z0f+f3rxronlD jqcWtG8w==; Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liydX-00Edms-Al for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 12:15:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EVyVWL3Bw3em1SB7guIWDG8Dh2TRp8K8vFAoLmQuXg0=; b=dK1razk150t4Tfj9gcVwpAGT5B AhGa2Peh9q7nPF9Z8/VTi/wqCEACgq7gerlbNloPcsbVqJemGywd5klfOMz8jwi/QuANCChnGD+Et 8yEYkc0SPRURXT0dCSqbBFKtHqp0mrP0ujlIB7Izx6ey8ZDH+EF36xuDq6v2Suc1dkSWL79Vy8V/r 2bzipjqOo+oHFCMuaO7mNNq8DVlhfhecerI4+7lcFaonA8rWIIqBVUDssssOgQzwH2sxeSG9tulCm aaT2PMROkDNkxT2Uj8VTZH37APoa47Yox3tFOnD4PmYWJPSMU6gep9dM4nP42U6wq/cT2eJTKR1fX ehUyzWBw==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:55062 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1liydQ-0004GM-Jo; Tue, 18 May 2021 13:15:40 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1liydQ-0004Po-2c; Tue, 18 May 2021 13:15:40 +0100 In-Reply-To: <20210518120633.GW12395@shell.armlinux.org.uk> References: <20210518120633.GW12395@shell.armlinux.org.uk> From: "Russell King (Oracle)" To: Yanfei Xu Cc: rppt@kernel.org, ardb@kernel.org, linus.walleij@linaro.org, akpm@linux-foundation.org, carver4lio@163.com, tiantao6@hisilicon.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] ARM: change vmalloc_min to be unsigned long MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Tue, 18 May 2021 13:15:40 +0100 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_051547_396679_0CBEF1E0 X-CRM114-Status: GOOD ( 12.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org vmalloc_min is currently a void pointer, but everywhere its used contains a cast - either to a void pointer when setting or back to an integer type when being used. Eliminate these casts by changing its type to unsigned long. Signed-off-by: Russell King (Oracle) --- arch/arm/mm/mmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c06ebfbc48c4..206c345f063e 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1123,8 +1123,8 @@ void __init debug_ll_io_init(void) } #endif -static void * __initdata vmalloc_min = - (void *)(VMALLOC_END - (240 << 20) - VMALLOC_OFFSET); +static unsigned long __initdata vmalloc_min = + VMALLOC_END - (240 << 20) - VMALLOC_OFFSET; /* * vmalloc=size forces the vmalloc area to be exactly 'size' @@ -1147,7 +1147,7 @@ static int __init early_vmalloc(char *arg) vmalloc_reserve >> 20); } - vmalloc_min = (void *)(VMALLOC_END - vmalloc_reserve); + vmalloc_min = VMALLOC_END - vmalloc_reserve; return 0; } early_param("vmalloc", early_vmalloc); @@ -1167,7 +1167,7 @@ void __init adjust_lowmem_bounds(void) * and may itself be outside the valid range for which phys_addr_t * and therefore __pa() is defined. */ - vmalloc_limit = (u64)(uintptr_t)vmalloc_min - PAGE_OFFSET + PHYS_OFFSET; + vmalloc_limit = (u64)vmalloc_min - PAGE_OFFSET + PHYS_OFFSET; /* * The first usable region must be PMD aligned. Mark its start -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel