Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp256006pxj; Fri, 28 May 2021 03:17:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwReg4mWpSR/S75if8+m6LcW75bfSZOiFb+gG2QA2GNQbckm4tLgsL22N0sX1wOFf/4LtVe X-Received: by 2002:a17:906:6c8a:: with SMTP id s10mr8188599ejr.276.1622197026212; Fri, 28 May 2021 03:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622197026; cv=none; d=google.com; s=arc-20160816; b=a2OUhwurFoY88EdnweHKS8HEFWGN3bZPLYzGxmcmL6gV6S3npTUSNenSHbumWqBnIT Ce4XlB47hwGsexSaJLQ+S3ppAVH5cUVT4K+7oHvZ0C9VVPxTxFq0TW4Wp+unappKFmBX l3Uk0as4tYHr8RlNyDgQNnX5P7waJA3O4amV/PtaxTbrRetMwPC/Nl/FFPqhXSuVV7f2 8y8O/VaM48acZFmRwwvIpDDdJAFABkSQA524EN2WIFoxpyox7jNl80aK9bE1GVAMPyIy S90A/ngmTBJKq0QcOeLJ0wHvUvoWK8nzrxdnnSNScT0HoedBfVpf4swfbKIijOwRlFuh vHLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:sender:message-id:content-transfer-encoding :content-disposition:mime-version:subject:cc:to:from:references :in-reply-to:dkim-signature; bh=G6wkOh1WLxhd+f66+CKgFtR4EGi7L3gk2cUf6TM1Sec=; b=SMUH9GFm6vMvQp/xGuxg3QeIfGVNKZJqQrt5Ku4I2OmoG944LCl/SXMrSCsxIF/QoK vpHIMHsJ7rQOipBtkYA2hMjvpX429myCVhCEaADkqmfe44RfFeItM9kMiCcCmNabKo3w O35DakdPMqcLi6n9ObS8emziczrwuIAYyr2RNdloLe6/nYameytE+twlKoxXi/vEouk8 T6SuY9kDvh6qGXH1Zrnloask+jupLZXZqYkCT5xRk9RG80upk2ScYD/nWG2dGeHa/kfu hWNnftOOwSoX3IYoG4+9wEE+5zvgiUvcaugM2rZVk9dN7WkLEdhx075UUQe12voBrr2E ZTVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Y6FTvAen; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si3665487eja.576.2021.05.28.03.16.39; Fri, 28 May 2021 03:17:06 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Y6FTvAen; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236562AbhE1KNe (ORCPT + 99 others); Fri, 28 May 2021 06:13:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236547AbhE1KNb (ORCPT ); Fri, 28 May 2021 06:13:31 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF133C061574 for ; Fri, 28 May 2021 03:11:56 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: Sender: Russell King Date: Fri, 28 May 2021 11:11:52 +0100 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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