Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1115756pxj; Sat, 29 May 2021 03:49:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywquzvhZrZZx6Nb3CsAlVbKzyht5npj3feVA9sByh0Yz70+hVWJ+yEtj+1CwM52vDQSD4t X-Received: by 2002:a92:50b:: with SMTP id q11mr5116263ile.119.1622285343855; Sat, 29 May 2021 03:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622285343; cv=none; d=google.com; s=arc-20160816; b=MWTO0pFN0pSy4GWEmdEJe6iBcV/gSRX4d00OeAwVhA6DYCTbSmRYN0kUmZxONYsMN3 ITz5XlCgsEZmMMz8NTIkS2NFqkhOa3B6JWWCFn+UoP+F0t24uNpXV+NowPqNUcMUp1ar +2aNcz98rpS9tf854xuZeH9SOTGAe2Mw0QmhX1gy0Ua4dSO6dVtwy+7oHr2v7jqUl2ix W3s1+fj5//qLpT123loxfqzc8NFNxdmrOPNszjU8qukQtifcZgA3l/ZYOjtK8Tfe6X2z myaJDR0CMJTQyobnnmLaeH0lOg7WhjYddGqTNLALCsY4svm4hCNDaK0Jxy5Qb38erXqI DUnQ== 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=QwQ7y35l112/wxq56KLrwKYz1VZkpRA2Il4i8KQN6ek=; b=Z3UpNQp8xV6pJscLq3wWG3hKQx+wbjUTZu1yFL2UFxmXQNzIDLnF2o/7EhJE1b6rVK Go3xqHWEoKgETHv9i5WI8teS48+WhGl/Q1kfft9ugjsI+y31mh9gtCbYs6PQqjnclwrb QjwqfR4m4aRlP3KFpQwM86OhaDF1+OZu+korLHKEg6UHEILa+QbzQwIUWgYiGtd0/JR5 EOQJgJJGRMZsDI7YEpd6EI00lyh+rEPHtwx8ZMdiW8bI0L25+7w4qZeCp/0Yc8WjKUZs Y5MpdJlw7S8UaKzCKJMgIKQU1tU6eeZfbKkY7rTpkDJEpYXQ/Kl1dSN2eknJrP5YHYsF XUwA== 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 w7si10720124ilu.149.2021.05.29.03.48.51; Sat, 29 May 2021 03:49:03 -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 S229842AbhE2KsR (ORCPT + 99 others); Sat, 29 May 2021 06:48:17 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:2353 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229698AbhE2Krm (ORCPT ); Sat, 29 May 2021 06:47:42 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4FsdQF194jz1BG38; Sat, 29 May 2021 18:41:25 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggemv711-chm.china.huawei.com (10.1.198.66) 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:02 +0800 From: Kefeng Wang To: Andrew Morton , CC: Kefeng Wang , Guo Ren , Subject: [PATCH 05/15] csky: convert to setup_initial_init_mm() Date: Sat, 29 May 2021 18:54:54 +0800 Message-ID: <20210529105504.180544-6-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: Guo Ren Cc: linux-csky@vger.kernel.org Signed-off-by: Kefeng Wang --- arch/csky/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/csky/kernel/setup.c b/arch/csky/kernel/setup.c index e93bc6f74432..c64e7be2045b 100644 --- a/arch/csky/kernel/setup.c +++ b/arch/csky/kernel/setup.c @@ -78,10 +78,7 @@ void __init setup_arch(char **cmdline_p) pr_info("Phys. mem: %ldMB\n", (unsigned long) memblock_phys_mem_size()/1024/1024); - 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); parse_early_param(); -- 2.26.2