Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2175413pxb; Fri, 25 Mar 2022 12:26:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8sH5WxlH17OwCfze/Cq/CyW1ezqR63DXxBtPLnA0P67cGi/ts/AqCAx415xOf5JKCey2+ X-Received: by 2002:a17:90a:528b:b0:1bc:c5f9:82a with SMTP id w11-20020a17090a528b00b001bcc5f9082amr26528672pjh.210.1648236381483; Fri, 25 Mar 2022 12:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648236381; cv=none; d=google.com; s=arc-20160816; b=B2WYc0dyqOTYtBAUIBtibZT8BUN++irGdJnonLQHw9Csvc4q1yhI82TRJvBLBiOhFH LDad1GgGSjmhsdSZQtwH7hlK8BZtDYu7a64dhwmpxve2si28FJkRWC8fn0dIZRs1wKdE muGPs8HE06/YWDUWdQ/rB99tKLXnEtSuNEcWxH0nnMbsdvb8XnziZKlbCqoqcSSx/FQV JDK8zoRGXqcuG6MZDRlPyt3zb43k/blwasIcF3v23N1MlunoSfevsIs7ibHQK351iFZN Hy6nASsA+7XYUUKh6uusvdElrSlxHvQwrFqZi8zNKMEl+HlY8mso3+KhG21GNsRf3U/I WX7w== 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=uxzF8fyqhnKMEbN2FTwx6qZaC746VWp2W79TBUGkcCs=; b=n0WjMW31gIe2c5cuJcC54XyyzPKo+Z3f0Lf3j/Bkc93pn2/FjBCPDcVqTN7Xnrqqxj 6WR2pgq/iDEOW+ZOriKpfrRH+r3dFYR816tNcrJBIM+JhbDASrPNMnO7BdCB/jiw8bd5 0dVCrNUDjAvyyPM46RB1mtLgMtmhhgv0+Y1mQvK7bSN8DE7oWMyvj5PTr/ZbjehswA0e dfCKvKeCHiZan6Wl6j3KiGSwcoW/4IRhbBrTO4ESecYA+2MhpoxNFA0W3ZoyraqPn5Po x0/0kCpDnsXbMlFQLpUlSQ3peGs/4fGgt72EoLNRWQXi3VjdwL5qHUTzvrehzlLSfEcT UUNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l10-20020a17090270ca00b00153b2d16447si3100112plt.79.2022.03.25.12.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C884F2A7B8C; Fri, 25 Mar 2022 11:35:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356444AbiCYFmS (ORCPT + 99 others); Fri, 25 Mar 2022 01:42:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241627AbiCYFmQ (ORCPT ); Fri, 25 Mar 2022 01:42:16 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEE84B427 for ; Thu, 24 Mar 2022 22:40:41 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KPrVG6T9GzCrp8; Fri, 25 Mar 2022 13:38:30 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 25 Mar 2022 13:40:39 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 25 Mar 2022 13:40:39 +0800 From: Kefeng Wang To: Catalin Marinas , Will Deacon , , CC: Kefeng Wang Subject: [PATCH 2/2] arm64: mm: Cleanup useless parameters in zone_sizes_init() Date: Fri, 25 Mar 2022 13:53:15 +0800 Message-ID: <20220325055315.25671-2-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20220325055315.25671-1-wangkefeng.wang@huawei.com> References: <20220325055315.25671-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Directly use max_pfn for max and no one use min, kill them. Signed-off-by: Kefeng Wang --- arch/arm64/mm/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 9dded8779d72..eacb38c2d225 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -158,7 +158,7 @@ static phys_addr_t __init max_zone_phys(unsigned int zone_bits) } phys_addr_t __ro_after_init dma32_phys_limit; -static void __init zone_sizes_init(unsigned long min, unsigned long max) +static void __init zone_sizes_init(void) { unsigned long max_zone_pfns[MAX_NR_ZONES] = {0}; #ifdef CONFIG_ZONE_DMA @@ -174,7 +174,7 @@ static void __init zone_sizes_init(unsigned long min, unsigned long max) #ifdef CONFIG_ZONE_DMA32 max_zone_pfns[ZONE_DMA32] = PFN_DOWN(dma32_phys_limit); #endif - max_zone_pfns[ZONE_NORMAL] = max; + max_zone_pfns[ZONE_NORMAL] = max_pfn; free_area_init(max_zone_pfns); } @@ -376,7 +376,7 @@ void __init bootmem_init(void) * done after the fixed reservations */ sparse_init(); - zone_sizes_init(min, max); + zone_sizes_init(); /* * Reserve the CMA area after arm64_dma_phys_limit was initialised. -- 2.26.2