Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115141pxj; Sat, 29 May 2021 03:47:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF+zNkfMoIjVj34agP9p9m0BKaTsOyBk4kltwOTNGJ6ibfmnoMKwuyoNDRUs6actcWEWYe X-Received: by 2002:a5d:9744:: with SMTP id c4mr10400900ioo.76.1622285264724; Sat, 29 May 2021 03:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285264; cv=none; d=google.com; s=arc-20160816; b=0sohhIWcpoT0+2ihXglL1wC/2V0uSAShT6Gx9Zq2rwTq90XSE3/fPrlE8h6NDkgiWg JFl/PIt7OieCfI+IJc5ttGTT3ppF5cXWLwn0ZHplebxdbWhRtK3kQv2qqTomj8qFMb0i z0TKuyPZI4jO5iZSVw5R0kfIn5XsvWzgbuZwMunVXw24mpq8V48xOPoLItjvWAvsuBkD UNiLfq6MdDo9965/zJsy1lJQmtwMchVjqG/PMa/SKPDrMkU59U4R5mk8OI8xNNWKQkv7 XnXgvzzYcuVqT2wYq8M/YrP/XYkQaLeYg8lORbFIyhAuCESu2587bzjdWceypYEDpGKo YZUg== 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=j4U0VEMJpTv1QqJwjICNmeqcKJJ6NaZl3bcKslzSVGQ=; b=HQ5azgHgMCu4PyH4eZwr3Z4y2BjWMO7Z0MJmDX2xvq3+hsWFlzQiLjin8oFYlyFxfU M9TCGmBvvm+3uLEcgGjga/uqBzvqSTJGmrkijnRFqcDNha3tsEFaPlbM0nZIYhK6rUme P7IOk9RhN8+F+4eaFkhCYKkeorF8OxsOqE9Vxld8yAMxWFavgQUJdwjPWgNhx3CpkW5T /Wkal4nSvr3I/4FcUV2W1ST5ScJJxZMM/1Bt+ybSPmeLmpDgpFTegsQ1eZIpWldfj2U0 DkuHMf/sUc88NVJOg7cU0WznNGMK405AcvCISNXZe4lc7eRiVq2nxkXiOqjK+DzDS0d5 DtGQ== 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 h7si7669548ilo.77.2021.05.29.03.47.19; Sat, 29 May 2021 03:47:44 -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 S229825AbhE2KsH (ORCPT + 99 others); Sat, 29 May 2021 06:48:07 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2407 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbhE2Krm (ORCPT ); Sat, 29 May 2021 06:47:42 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FsdRK4wFZz66cn; Sat, 29 May 2021 18:42:21 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv704-chm.china.huawei.com (10.3.19.47) 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 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 , Russell King , Subject: [PATCH 03/15] arm: convert to setup_initial_init_mm() Date: Sat, 29 May 2021 18:54:52 +0800 Message-ID: <20210529105504.180544-4-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: Russell King Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Kefeng Wang --- arch/arm/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index 1a5edf562e85..81de1bf07ba6 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -1114,10 +1114,7 @@ void __init setup_arch(char **cmdline_p) if (mdesc->reboot_mode != REBOOT_HARD) reboot_mode = mdesc->reboot_mode; - init_mm.start_code = (unsigned long) _text; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = (unsigned long) _end; + setup_initial_init_mm(_text, _etext, _edata, _end); /* populate cmd_line too for later use, preserving boot_command_line */ strlcpy(cmd_line, boot_command_line, COMMAND_LINE_SIZE); -- 2.26.2