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 4D74EC4708C for ; Fri, 28 May 2021 11:05:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F2BEF6128D for ; Fri, 28 May 2021 11:05:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2BEF6128D 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=bombadil.20210309; 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=AfCpg4EEAOZ82WCcuQ/skfIdLgepfGDk+kZC4/62H7E=; b=Fm69ScIvXn5lhn 3pe2z610rSdCGXzz+VeYMSnjMxiz9tKLUMCW7EeTygD55ZeCXlzbkSwKS3EBeBo99DtdDnCmCvxt9 rmWMmWwLVuXq+PCpzekQlRCjj3EI/DFdp+iSmtuEk5LWOQSpwE6rxFkMvAhwWqVwiPAMVWJkh06uA PyH3Qb5hfHeBnxqBrw7MleEfK0tDgfB+BPf39KEizOmHTAN9a3QUA+2h6ZBkoTaYp7M+S6BrsYuow E9Vg3iLyA3bqMpzQ2UawjH41ZkvEil6207cQqdEtcCsKcTaiWkRgQCDB4/TUap4uJc01EXND8kQl+ UhU6X9IsIOBn6j5s486g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmaG4-00Edsa-8M; Fri, 28 May 2021 11:02:33 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmZT8-00EGtr-VN for linux-arm-kernel@lists.infradead.org; Fri, 28 May 2021 10:11:58 +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=G6wkOh1WLxhd+f66+CKgFtR4EGi7L3gk2cUf6TM1Sec=; b=Y6FTvAenXvqUy+4V2Y4jmyA5ib gU/m/lejvRbXTsgDY7jsZQMw1p+1B3bDvdXgpz3acUPQigCnDkZ6l4+IGm/tD7R/KFbOHVXiDqq+s w9f1JDZcT7mFiXNP7bAs7bAMOwVN2G0n4FUoeiH2HW0h0rKICSEG7ltRliIdKIYhs/l8Uh7KX1TRT X0O+y6xjYOhJLjRVUgd/U11yVAyOX0GFELz7v8rytAR8TCGNj7jcfcDVxGYNctqqTrTslctLCifxk pnbF7B9wkgsmlRPHjCG9v3uDjAhCJ+ISLRfJ77xiCE7WqzTkbdJMjiIQw7ktoACl/bqX2Oj6fGdoW OQl79WhQ==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:57318 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 1lmZT6-0008Gc-Ff; Fri, 28 May 2021 11:11:52 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lmZT6-0005U2-8e; Fri, 28 May 2021 11:11:52 +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 v2 5/6] ARM: use "* SZ_1M" rather than "<< 20" MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Fri, 28 May 2021 11:11:52 +0100 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210528_031155_071443_2E6A0C21 X-CRM114-Status: GOOD ( 10.94 ) 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 Make the default vmalloc size clearer by using a more natural multiplication by SZ_1M rather than a shift left by 20 bits. Signed-off-by: Russell King (Oracle) --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 5ae11e6f2a58..d52647b6261c 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1123,7 +1123,7 @@ void __init debug_ll_io_init(void) } #endif -static unsigned long __initdata vmalloc_size = 240 << 20; +static unsigned long __initdata vmalloc_size = 240 * SZ_1M; /* * vmalloc=size forces the vmalloc area to be exactly 'size' -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel