Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115694pxj; Sat, 29 May 2021 03:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPXiBRF0i4WXlhu8yM+FfQeX2Q2P4hO+Un7MtsSnTT57q2tCutTDvWcQIM/3lodqtHc45u X-Received: by 2002:a92:b102:: with SMTP id t2mr10429233ilh.102.1622285338378; Sat, 29 May 2021 03:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285338; cv=none; d=google.com; s=arc-20160816; b=nsA1TIw2VCeZIQcfTOtnLxdXQU9FJsUJctI2WrapiUgJPuUgaIgQ2Oi76czri8SKmR FdZe63GU9HDA+KZkBZ7bjk8stq6pDRvxHQ25/CrQetdCV9XDehwYZnq4+k+K+QvrIjqc z5Q7jlQfCnsCH98zqiIr28Pwye3wMhwKbq/xyWJYwXjAU06qa4LgKudqzVZLVLxvAnXo qxJsVukaaFN6xdy7eeA504DJpgCXd9QAY6nPT3pvqOlIxRjRzbFY+04X5bVvwhf5VNEe yPzdz5SlLFaPJMPqFOuy0yctkgwEj7cQ43QSC7/W79yITqMyZ+7I5zqvXrqd+/+5M4ZW UuVg== 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=H9nRQH9h/T2VZF2pTVvUQprBrm8hF8hE7fg0Xg6t3lc=; b=0em/26wEgSbiFWy3ymGEHWA5fKxjI+JhqmTeYmC+CwABHM1+FjzSgf2SelP5GGj/wc jsf4jvK43HzJbL0zFc2cOpC4MF+ORhEy3Q0uHrKz5aEefdazdAfAprQ/ahVFXi/nd/gq uqU4g3fy6mUAe2LEMPSdOYBD5ZVd/U1RqOMAZPGT86NhOKpWlGEBgPmtnCDA1dqkcvt3 Gql+8P/aULrM6IGERZTFenW1Ii+PioQWvSINXo8p9rb4yZ1SdM90cwrxx3EU0/y5COsc BJPmSoqhpVbcCak4OcFzvl90/G+0lSFjxsbVrou3PflNkENDFaa4dwwKaN+ixJ3/uYX3 /RWw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si9856606ilu.88.2021.05.29.03.48.45; Sat, 29 May 2021 03:48:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbhE2KsW (ORCPT + 99 others); Sat, 29 May 2021 06:48:22 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5145 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbhE2Krn (ORCPT ); Sat, 29 May 2021 06:47:43 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FsdST03dxzYp3J; Sat, 29 May 2021 18:43:21 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 29 May 2021 18:46:02 +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.2176.2; Sat, 29 May 2021 18:46:01 +0800 From: Kefeng Wang To: Andrew Morton , CC: Kefeng Wang , Catalin Marinas , Will Deacon , Subject: [PATCH 04/15] arm64: convert to setup_initial_init_mm() Date: Sat, 29 May 2021 18:54:53 +0800 Message-ID: <20210529105504.180544-5-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210529105504.180544-1-wangkefeng.wang@huawei.com> References: <20210529105504.180544-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: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use setup_initial_init_mm() helper to simplify code. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Kefeng Wang --- arch/arm64/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index ac8222443ea8..08b0308b7f3b 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c @@ -293,10 +293,7 @@ u64 cpu_logical_map(unsigned int cpu) void __init __no_sanitize_address setup_arch(char **cmdline_p) { - init_mm.start_code = (unsigned long) _stext; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = (unsigned long) _end; + setup_initial_init_mm(_stext, _etext, _edata, _end); *cmdline_p = boot_command_line; -- 2.26.2